update components
This commit is contained in:
parent
ffb0fd30b6
commit
d131f21626
27 changed files with 180 additions and 115 deletions
|
@ -10,16 +10,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<link rel="import" href="../polymer/polymer.html">
|
||||
|
||||
<!--
|
||||
Enables a custom element to be included in an `iron-form`.
|
||||
-->
|
||||
<script>
|
||||
|
||||
/**
|
||||
Polymer.IronFormElementBehavior enables a custom element to be included
|
||||
in an `iron-form`.
|
||||
|
||||
@demo demo/index.html
|
||||
@polymerBehavior
|
||||
|
||||
*/
|
||||
Polymer.IronFormElementBehavior = {
|
||||
|
||||
|
@ -51,6 +48,19 @@ Enables a custom element to be included in an `iron-form`.
|
|||
type: String
|
||||
},
|
||||
|
||||
/**
|
||||
* Set to true to mark the input as required. If used in a form, a
|
||||
* custom element that uses this behavior should also use
|
||||
* Polymer.IronValidatableBehavior and define a custom validation method.
|
||||
* Otherwise, a `required` element will always be considered valid.
|
||||
* It's also strongly recomended to provide a visual style for the element
|
||||
* when it's value is invalid.
|
||||
*/
|
||||
required: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
|
||||
/**
|
||||
* The form that the element is registered to.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue