mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
6825ae319e
commit
2d53ff29c5
106 changed files with 3070 additions and 1567 deletions
|
@ -14,7 +14,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<script>
|
||||
|
||||
/**
|
||||
* Use `Polymer.IronValidatableBehavior` to implement an element that validates user input.
|
||||
* `Use Polymer.IronValidatableBehavior` to implement an element that validates user input.
|
||||
* Use the related `Polymer.IronValidatorBehavior` to add custom validation logic to an iron-input.
|
||||
*
|
||||
* By default, an `<iron-form>` element validates its fields when the user presses the submit button.
|
||||
* To validate a form imperatively, call the form's `validate()` method, which in turn will
|
||||
* call `validate()` on all its children. By using `Polymer.IronValidatableBehavior`, your
|
||||
* custom element will get a public `validate()`, which
|
||||
* will return the validity of the element, and a corresponding `invalid` attribute,
|
||||
* which can be used for styling.
|
||||
*
|
||||
* To implement the custom validation logic of your element, you must override
|
||||
* the protected `_getValidity()` method of this behaviour, rather than `validate()`.
|
||||
* See [this](https://github.com/PolymerElements/iron-form/blob/master/demo/simple-element.html)
|
||||
* for an example.
|
||||
*
|
||||
* ### Accessibility
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue