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 `paper_input_container`. | 3 /// Dart API for the polymer element `paper_input_container`. |
4 @HtmlImport('paper_input_container_nodart.html') | 4 @HtmlImport('paper_input_container_nodart.html') |
5 library polymer_elements.lib.src.paper_input.paper_input_container; | 5 library polymer_elements.lib.src.paper_input.paper_input_container; |
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'; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 /// | 66 /// |
67 /// The following custom properties and mixins are available for styling: | 67 /// The following custom properties and mixins are available for styling: |
68 /// | 68 /// |
69 /// Custom property | Description | Default | 69 /// Custom property | Description | Default |
70 /// ----------------|-------------|---------- | 70 /// ----------------|-------------|---------- |
71 /// `--paper-input-container-color` | Label and underline color when the input i
s not focused | `--secondary-text-color` | 71 /// `--paper-input-container-color` | Label and underline color when the input i
s not focused | `--secondary-text-color` |
72 /// `--paper-input-container-focus-color` | Label and underline color when the i
nput is focused | `--default-primary-color` | 72 /// `--paper-input-container-focus-color` | Label and underline color when the i
nput is focused | `--default-primary-color` |
73 /// `--paper-input-container-invalid-color` | Label and underline color when the
input is is invalid | `--google-red-500` | 73 /// `--paper-input-container-invalid-color` | Label and underline color when the
input is is invalid | `--google-red-500` |
74 /// `--paper-input-container-input-color` | Input foreground color | `--primary-
text-color` | 74 /// `--paper-input-container-input-color` | Input foreground color | `--primary-
text-color` |
75 /// `--paper-input-container` | Mixin applied to the container | `{}` | 75 /// `--paper-input-container` | Mixin applied to the container | `{}` |
| 76 /// `--paper-input-container-disabled` | Mixin applied to the container when it'
s disabled | `{}` |
76 /// `--paper-input-container-label` | Mixin applied to the label | `{}` | 77 /// `--paper-input-container-label` | Mixin applied to the label | `{}` |
77 /// `--paper-input-container-label-focus` | Mixin applied to the label when the
input is focused | `{}` | 78 /// `--paper-input-container-label-focus` | Mixin applied to the label when the
input is focused | `{}` |
78 /// `--paper-input-container-input` | Mixin applied to the input | `{}` | 79 /// `--paper-input-container-input` | Mixin applied to the input | `{}` |
79 /// `--paper-input-container-input-disabled` | Mixin applied to the input when i
t's disabled | `{}` | |
80 /// `--paper-input-container-prefix` | Mixin applied to the input prefix | `{}` | |
81 /// `--paper-input-container-suffix` | Mixin applied to the input suffix | `{}` | |
82 /// `--paper-input-container-underline` | Mixin applied to the underline | `{}` | 80 /// `--paper-input-container-underline` | Mixin applied to the underline | `{}` |
83 /// `--paper-input-container-underline-focus` | Mixin applied to the underline w
hen the input is focued | `{}` | 81 /// `--paper-input-container-underline-focus` | Mixin applied to the underline w
hen the input is focued | `{}` |
84 /// `--paper-input-container-underline-disabled` | Mixin applied to the underlin
e when the input is disabled | `{}` | 82 /// `--paper-input-container-underline-disabled` | Mixin applied to the underlin
e when the input is disabled | `{}` |
| 83 /// `--paper-input-prefix` | Mixin applied to the input prefix | `{}` |
| 84 /// `--paper-input-suffix` | Mixin applied to the input suffix | `{}` |
85 /// | 85 /// |
86 /// This element is `display:block` by default, but you can set the `inline` att
ribute to make it | 86 /// This element is `display:block` by default, but you can set the `inline` att
ribute to make it |
87 /// `display:inline-block`. | 87 /// `display:inline-block`. |
88 @CustomElementProxy('paper-input-container') | 88 @CustomElementProxy('paper-input-container') |
89 class PaperInputContainer extends HtmlElement with CustomElementProxyMixin, Poly
merBase { | 89 class PaperInputContainer extends HtmlElement with CustomElementProxyMixin, Poly
merBase { |
90 PaperInputContainer.created() : super.created(); | 90 PaperInputContainer.created() : super.created(); |
91 factory PaperInputContainer() => new Element.tag('paper-input-container'); | 91 factory PaperInputContainer() => new Element.tag('paper-input-container'); |
92 | 92 |
93 /// Set to true to always float the floating label. | 93 /// Set to true to always float the floating label. |
94 bool get alwaysFloatLabel => jsElement[r'alwaysFloatLabel']; | 94 bool get alwaysFloatLabel => jsElement[r'alwaysFloatLabel']; |
95 set alwaysFloatLabel(bool value) { jsElement[r'alwaysFloatLabel'] = value; } | 95 set alwaysFloatLabel(bool value) { jsElement[r'alwaysFloatLabel'] = value; } |
96 | 96 |
97 /// The attribute to listen for value changes on. | 97 /// The attribute to listen for value changes on. |
98 String get attrForValue => jsElement[r'attrForValue']; | 98 String get attrForValue => jsElement[r'attrForValue']; |
99 set attrForValue(String value) { jsElement[r'attrForValue'] = value; } | 99 set attrForValue(String value) { jsElement[r'attrForValue'] = value; } |
100 | 100 |
101 /// Set to true to auto-validate the input value when it changes. | 101 /// Set to true to auto-validate the input value when it changes. |
102 bool get autoValidate => jsElement[r'autoValidate']; | 102 bool get autoValidate => jsElement[r'autoValidate']; |
103 set autoValidate(bool value) { jsElement[r'autoValidate'] = value; } | 103 set autoValidate(bool value) { jsElement[r'autoValidate'] = value; } |
104 | 104 |
105 /// True if the input has focus. | 105 /// True if the input has focus. |
106 bool get focused => jsElement[r'focused']; | 106 bool get focused => jsElement[r'focused']; |
107 set focused(bool value) { jsElement[r'focused'] = value; } | 107 set focused(bool value) { jsElement[r'focused'] = value; } |
108 | 108 |
109 /// True if the input is invalid. This property is set automatically when the
input value | 109 /// True if the input is invalid. This property is set automatically when the
input value |
110 /// changes if auto-validating, or when the `iron-input-valid` event is heard
from a child. | 110 /// changes if auto-validating, or when the `iron-input-validate` event is hea
rd from a child. |
111 bool get invalid => jsElement[r'invalid']; | 111 bool get invalid => jsElement[r'invalid']; |
112 set invalid(bool value) { jsElement[r'invalid'] = value; } | 112 set invalid(bool value) { jsElement[r'invalid'] = value; } |
113 | 113 |
114 /// Set to true to disable the floating label. The label disappears when the i
nput value is | 114 /// Set to true to disable the floating label. The label disappears when the i
nput value is |
115 /// not null. | 115 /// not null. |
116 bool get noLabelFloat => jsElement[r'noLabelFloat']; | 116 bool get noLabelFloat => jsElement[r'noLabelFloat']; |
117 set noLabelFloat(bool value) { jsElement[r'noLabelFloat'] = value; } | 117 set noLabelFloat(bool value) { jsElement[r'noLabelFloat'] = value; } |
118 | 118 |
119 /// Call this to update the state of add-ons. | 119 /// Call this to update the state of add-ons. |
120 /// [state]: Add-on state. | 120 /// [state]: Add-on state. |
121 updateAddons(state) => | 121 updateAddons(state) => |
122 jsElement.callMethod('updateAddons', [state]); | 122 jsElement.callMethod('updateAddons', [state]); |
123 } | 123 } |
OLD | NEW |