Giter Club home page Giter Club logo

anypoint-text-field's Introduction

Build Status

anypoint-text-field

<anypoint-text-field> single line text input styled for the Anypoint platform as a Polymer powered web component

It may include an optional error message.

<anypoint-text-field required error-message="Value is required"></anypoint-text-field>

It may include a custom validator(s).

<anypoint-text-field validator="my-validator" error-message="Value is required"></anypoint-text-field>

See Anypoint.AnypointValidatableBehavior for API and examples.

Styling

See anypoint-text-container for styling options.

Events

Name Description Params
change Fired when the input changes due to user interaction. none

anypoint-text-container

The <anypoint-text-container> is a container for a label and input text styled to match the Anypoint platform styling.

Styling

<anypoint-text-field> provides the following custom properties and mixins for styling:

Custom property Description Default
--anypoint-text-container Mixin applied to the input container {}
--anypoint-text-container-disabled Mixin applied to the disabled container {}
--anypoint-text-container-border Mixin applied to the border element on the left and right hand side of the input ``
--anypoint-text-container-border-focused Mixin applied to the border element on the left and right hand side of the input ``
--anypoint-text-container-border-color Color of the right and left border of the input --anypoint-color-aluminum4
--anypoint-text-container-border-focused-color Color of the right and left border of the input when the input is focused --anypoint-color-steel2
--anypoint-text-container-invalid-color, Error color --anypoint-color-danger
--anypoint-text-container-label-color Color of the label --anypoint-color-aluminum5
--anypoint-text-container-label Mixin applied to the label {}
--anypoint-text-container-label-floating Mixin applied to the floating label {}
--anypoint-text-container-label-focus Mixin applied to the label when focused {}
--anypoint-text-container-focus-color Color applied to the label and input when focused --anypoint-color-aluminum5
--anypoint-text-field-prefix Mixin applied to any prefix element added to the container {}
--anypoint-text-field-suffix Mixin applied to any suffix element added to the container {}
--anypoint-text-container-input-color Color of the input control --anypoint-color-steel5
--anypoint-text-container-input Mixin applied to the input control ``

anypoint-text-textarea

<anypoint-text-field> is a mu;lti line text input styled for the Anypoint platform as a Polymer powered web component

Example

<anypoint-text-textarea></anypoint-text-textarea>

Styling

See anypoint-text-container for styling options.

Events

Name Description Params
change Fired when the input changes due to user interaction. none

anypoint-validation-result

The <anypoint-validation-result> is a container for an error message or list of validation rules if the input element uses validators.

Styling

Custom property Description Default
--anypoint-validation-result-container Mixin applied to the element {}
--anypoint-validation-result-border-color Border color of the popover --anypoint-color-aluminum3
--anypoint-validation-result-left-border Color of the right border of the popover --anypoint-color-steel4
--anypoint-text-container-invalid-color Color of error messages and borders when corresponding form control is invalid --anypoint-color-danger
--anypoint-validation-result-message-size Font size of the validation message. 12px

anypoint-text-field's People

Contributors

arcauto avatar jarrodek avatar nazartokar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.