OLD | NEW |
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` | 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` |
2 | 2 |
3 /// Dart API for the polymer element `iron_autogrow_textarea`. | 3 /// Dart API for the polymer element `iron_autogrow_textarea`. |
4 @HtmlImport('iron_autogrow_textarea_nodart.html') | 4 @HtmlImport('iron_autogrow_textarea_nodart.html') |
5 library polymer_elements.lib.src.iron_autogrow_textarea.iron_autogrow_textarea; | 5 library polymer_elements.lib.src.iron_autogrow_textarea.iron_autogrow_textarea; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 import 'dart:js' show JsArray, JsObject; | 8 import 'dart:js' show JsArray, JsObject; |
9 import 'package:web_components/web_components.dart'; | 9 import 'package:web_components/web_components.dart'; |
10 import 'package:polymer_interop/polymer_interop.dart'; | 10 import 'package:polymer_interop/polymer_interop.dart'; |
11 import 'iron_form_element_behavior.dart'; | 11 import 'iron_form_element_behavior.dart'; |
12 import 'iron_validatable_behavior.dart'; | 12 import 'iron_validatable_behavior.dart'; |
13 import 'iron_control_state.dart'; | 13 import 'iron_control_state.dart'; |
14 import 'iron_flex_layout/classes/iron_flex_layout.dart'; | 14 import 'iron_flex_layout/classes/iron_flex_layout.dart'; |
15 | 15 |
16 /// `iron-autogrow-textarea` is an element containing a textarea that grows in h
eight as more | 16 /// `iron-autogrow-textarea` is an element containing a textarea that grows in h
eight as more |
17 /// lines of input are entered. Unless an explicit height or the `maxRows` prope
rty is set, it will | 17 /// lines of input are entered. Unless an explicit height or the `maxRows` prope
rty is set, it will |
18 /// never scroll. | 18 /// never scroll. |
19 /// | 19 /// |
20 /// Example: | 20 /// Example: |
21 /// | 21 /// |
22 /// <iron-autogrow-textarea></iron-autogrow-textarea> | 22 /// <iron-autogrow-textarea></iron-autogrow-textarea> |
23 /// | 23 /// |
24 /// Because the `textarea`'s `value` property is not observable, you should use | 24 /// Because the `textarea`'s `value` property is not observable, you should use |
25 /// this element's `bind-value` instead for imperative updates. | 25 /// this element's `bind-value` instead for imperative updates. |
| 26 /// |
| 27 /// ### Styling |
| 28 /// The following custom properties and mixins are available for styling: |
| 29 /// Custom property | Description | Default |
| 30 /// ----------------|-------------|---------- |
| 31 /// `--iron-autogrow-textarea` | Mixin applied to the textarea | `{}` |
26 @CustomElementProxy('iron-autogrow-textarea') | 32 @CustomElementProxy('iron-autogrow-textarea') |
27 class IronAutogrowTextarea extends HtmlElement with CustomElementProxyMixin, Pol
ymerBase, IronFormElementBehavior, IronValidatableBehavior, IronControlState { | 33 class IronAutogrowTextarea extends HtmlElement with CustomElementProxyMixin, Pol
ymerBase, IronFormElementBehavior, IronValidatableBehavior, IronControlState { |
28 IronAutogrowTextarea.created() : super.created(); | 34 IronAutogrowTextarea.created() : super.created(); |
29 factory IronAutogrowTextarea() => new Element.tag('iron-autogrow-textarea'); | 35 factory IronAutogrowTextarea() => new Element.tag('iron-autogrow-textarea'); |
30 | 36 |
31 /// Bound to the textarea's `autocomplete` attribute. | 37 /// Bound to the textarea's `autocomplete` attribute. |
32 String get autocomplete => jsElement[r'autocomplete']; | 38 String get autocomplete => jsElement[r'autocomplete']; |
33 set autocomplete(String value) { jsElement[r'autocomplete'] = value; } | 39 set autocomplete(String value) { jsElement[r'autocomplete'] = value; } |
34 | 40 |
35 /// Bound to the textarea's `autofocus` attribute. | 41 /// Bound to the textarea's `autofocus` attribute. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 /// The value for this input, same as `bindValue` | 93 /// The value for this input, same as `bindValue` |
88 String get value => jsElement[r'value']; | 94 String get value => jsElement[r'value']; |
89 set value(String value) { jsElement[r'value'] = value; } | 95 set value(String value) { jsElement[r'value'] = value; } |
90 | 96 |
91 /// Returns true if `value` is valid. The validator provided in `validator` | 97 /// Returns true if `value` is valid. The validator provided in `validator` |
92 /// will be used first, if it exists; otherwise, the `textarea`'s validity | 98 /// will be used first, if it exists; otherwise, the `textarea`'s validity |
93 /// is used. | 99 /// is used. |
94 bool validate() => | 100 bool validate() => |
95 jsElement.callMethod('validate', []); | 101 jsElement.callMethod('validate', []); |
96 } | 102 } |
OLD | NEW |