|
32 | 32 | */ |
33 | 33 |
|
34 | 34 | /** |
35 | | - * The label for this input. Bind this to `<label>`'s content and `hidden` property, e.g. |
| 35 | + * The label for this input. If you're using PaperInputBehavior to |
| 36 | + * implement your own paper-input-like element, bind this to |
| 37 | + * `<label>`'s content and `hidden` property, e.g. |
36 | 38 | * `<label hidden$="[[!label]]">[[label]]</label>` in your `template` |
37 | 39 | */ |
38 | 40 | label: { |
39 | 41 | type: String |
40 | 42 | }, |
41 | 43 |
|
42 | 44 | /** |
43 | | - * The value for this input. Bind this to the `<input is="iron-input">`'s `bindValue` |
| 45 | + * The value for this input. If you're using PaperInputBehavior to |
| 46 | + * implement your own paper-input-like element, bind this to |
| 47 | + * the `<input is="iron-input">`'s `bindValue` |
44 | 48 | * property, or the value property of your input that is `notify:true`. |
45 | 49 | */ |
46 | 50 | value: { |
|
49 | 53 | }, |
50 | 54 |
|
51 | 55 | /** |
52 | | - * Set to true to disable this input. Bind this to both the `<paper-input-container>`'s |
53 | | - * and the input's `disabled` property. |
| 56 | + * Set to true to disable this input. If you're using PaperInputBehavior to |
| 57 | + * implement your own paper-input-like element, bind this to |
| 58 | + * both the `<paper-input-container>`'s and the input's `disabled` property. |
54 | 59 | */ |
55 | 60 | disabled: { |
56 | 61 | type: Boolean, |
57 | 62 | value: false |
58 | 63 | }, |
59 | 64 |
|
60 | 65 | /** |
61 | | - * Returns true if the value is invalid. Bind this to both the `<paper-input-container>`'s |
62 | | - * and the input's `invalid` property. |
63 | | - * |
| 66 | + * Returns true if the value is invalid. If you're using PaperInputBehavior to |
| 67 | + * implement your own paper-input-like element, bind this to both the |
| 68 | + * `<paper-input-container>`'s and the input's `invalid` property. |
| 69 | + * |
64 | 70 | * If `autoValidate` is true, the `invalid` attribute is managed automatically, |
65 | 71 | * which can clobber attempts to manage it manually. |
66 | 72 | */ |
|
71 | 77 | }, |
72 | 78 |
|
73 | 79 | /** |
74 | | - * Set to true to prevent the user from entering invalid input. Bind this to the |
75 | | - * `<input is="iron-input">`'s `preventInvalidInput` property. |
| 80 | + * Set to true to prevent the user from entering invalid input. If you're |
| 81 | + * using PaperInputBehavior to implement your own paper-input-like element, |
| 82 | + * bind this to `<input is="iron-input">`'s `preventInvalidInput` property. |
76 | 83 | */ |
77 | 84 | preventInvalidInput: { |
78 | 85 | type: Boolean |
79 | 86 | }, |
80 | 87 |
|
81 | 88 | /** |
82 | | - * Set this to specify the pattern allowed by `preventInvalidInput`. Bind this to the |
83 | | - * `<input is="iron-input">`'s `allowedPattern` property. |
| 89 | + * Set this to specify the pattern allowed by `preventInvalidInput`. If |
| 90 | + * you're using PaperInputBehavior to implement your own paper-input-like |
| 91 | + * element, bind this to the `<input is="iron-input">`'s `allowedPattern` |
| 92 | + * property. |
84 | 93 | */ |
85 | 94 | allowedPattern: { |
86 | 95 | type: String |
87 | 96 | }, |
88 | 97 |
|
89 | 98 | /** |
90 | | - * The type of the input. The supported types are `text`, `number` and `password`. Bind this |
91 | | - * to the `<input is="iron-input">`'s `type` property. |
| 99 | + * The type of the input. The supported types are `text`, `number` and `password`. |
| 100 | + * If you're using PaperInputBehavior to implement your own paper-input-like element, |
| 101 | + * bind this to the `<input is="iron-input">`'s `type` property. |
92 | 102 | */ |
93 | 103 | type: { |
94 | 104 | type: String |
95 | 105 | }, |
96 | 106 |
|
97 | 107 | /** |
98 | | - * The datalist of the input (if any). This should match the id of an existing `<datalist>`. Bind this |
99 | | - * to the `<input is="iron-input">`'s `list` property. |
| 108 | + * The datalist of the input (if any). This should match the id of an existing `<datalist>`. |
| 109 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 110 | + * element, bind this to the `<input is="iron-input">`'s `list` property. |
100 | 111 | */ |
101 | 112 | list: { |
102 | 113 | type: String |
103 | 114 | }, |
104 | 115 |
|
105 | 116 | /** |
106 | | - * A pattern to validate the `input` with. Bind this to the `<input is="iron-input">`'s |
107 | | - * `pattern` property. |
| 117 | + * A pattern to validate the `input` with. If you're using PaperInputBehavior to |
| 118 | + * implement your own paper-input-like element, bind this to |
| 119 | + * the `<input is="iron-input">`'s `pattern` property. |
108 | 120 | */ |
109 | 121 | pattern: { |
110 | 122 | type: String |
111 | 123 | }, |
112 | 124 |
|
113 | 125 | /** |
114 | | - * Set to true to mark the input as required. Bind this to the `<input is="iron-input">`'s |
115 | | - * `required` property. |
| 126 | + * Set to true to mark the input as required. If you're using PaperInputBehavior to |
| 127 | + * implement your own paper-input-like element, bind this to |
| 128 | + * the `<input is="iron-input">`'s `required` property. |
116 | 129 | */ |
117 | 130 | required: { |
118 | 131 | type: Boolean, |
119 | 132 | value: false |
120 | 133 | }, |
121 | 134 |
|
122 | 135 | /** |
123 | | - * The error message to display when the input is invalid. Bind this to the |
124 | | - * `<paper-input-error>`'s content, if using. |
| 136 | + * The error message to display when the input is invalid. If you're using |
| 137 | + * PaperInputBehavior to implement your own paper-input-like element, |
| 138 | + * bind this to the `<paper-input-error>`'s content, if using. |
125 | 139 | */ |
126 | 140 | errorMessage: { |
127 | 141 | type: String |
|
136 | 150 | }, |
137 | 151 |
|
138 | 152 | /** |
139 | | - * Set to true to disable the floating label. Bind this to the `<paper-input-container>`'s |
140 | | - * `noLabelFloat` property. |
| 153 | + * Set to true to disable the floating label. If you're using PaperInputBehavior to |
| 154 | + * implement your own paper-input-like element, bind this to |
| 155 | + * the `<paper-input-container>`'s `noLabelFloat` property. |
141 | 156 | */ |
142 | 157 | noLabelFloat: { |
143 | 158 | type: Boolean, |
144 | 159 | value: false |
145 | 160 | }, |
146 | 161 |
|
147 | 162 | /** |
148 | | - * Set to true to always float the label. Bind this to the `<paper-input-container>`'s |
149 | | - * `alwaysFloatLabel` property. |
| 163 | + * Set to true to always float the label. If you're using PaperInputBehavior to |
| 164 | + * implement your own paper-input-like element, bind this to |
| 165 | + * the `<paper-input-container>`'s `alwaysFloatLabel` property. |
150 | 166 | */ |
151 | 167 | alwaysFloatLabel: { |
152 | 168 | type: Boolean, |
153 | 169 | value: false |
154 | 170 | }, |
155 | 171 |
|
156 | 172 | /** |
157 | | - * Set to true to auto-validate the input value. Bind this to the `<paper-input-container>`'s |
158 | | - * `autoValidate` property. |
| 173 | + * Set to true to auto-validate the input value. If you're using PaperInputBehavior to |
| 174 | + * implement your own paper-input-like element, bind this to |
| 175 | + * the `<paper-input-container>`'s `autoValidate` property. |
159 | 176 | */ |
160 | 177 | autoValidate: { |
161 | 178 | type: Boolean, |
162 | 179 | value: false |
163 | 180 | }, |
164 | 181 |
|
165 | 182 | /** |
166 | | - * Name of the validator to use. Bind this to the `<input is="iron-input">`'s `validator` |
167 | | - * property. |
| 183 | + * Name of the validator to use. If you're using PaperInputBehavior to |
| 184 | + * implement your own paper-input-like element, bind this to |
| 185 | + * the `<input is="iron-input">`'s `validator` property. |
168 | 186 | */ |
169 | 187 | validator: { |
170 | 188 | type: String |
|
173 | 191 | // HTMLInputElement attributes for binding if needed |
174 | 192 |
|
175 | 193 | /** |
176 | | - * Bind this to the `<input is="iron-input">`'s `autocomplete` property. |
| 194 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 195 | + * element, bind this to the `<input is="iron-input">`'s `autocomplete` property. |
177 | 196 | */ |
178 | 197 | autocomplete: { |
179 | 198 | type: String, |
180 | 199 | value: 'off' |
181 | 200 | }, |
182 | 201 |
|
183 | 202 | /** |
184 | | - * Bind this to the `<input is="iron-input">`'s `autofocus` property. |
| 203 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 204 | + * element, bind this to the `<input is="iron-input">`'s `autofocus` property. |
185 | 205 | */ |
186 | 206 | autofocus: { |
187 | 207 | type: Boolean |
188 | 208 | }, |
189 | 209 |
|
190 | 210 | /** |
191 | | - * Bind this to the `<input is="iron-input">`'s `inputmode` property. |
| 211 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 212 | + * element, bind this to the `<input is="iron-input">`'s `inputmode` property. |
192 | 213 | */ |
193 | 214 | inputmode: { |
194 | 215 | type: String |
195 | 216 | }, |
196 | 217 |
|
197 | 218 | /** |
198 | | - * Bind this to the `<input is="iron-input">`'s `minlength` property. |
| 219 | + * The minimum length of the input value. |
| 220 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 221 | + * element, bind this to the `<input is="iron-input">`'s `minlength` property. |
199 | 222 | */ |
200 | 223 | minlength: { |
201 | 224 | type: Number |
202 | 225 | }, |
203 | 226 |
|
204 | 227 | /** |
205 | | - * The maximum length of the input value. Bind this to the `<input is="iron-input">`'s |
206 | | - * `maxlength` property. |
| 228 | + * The maximum length of the input value. |
| 229 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 230 | + * element, bind this to the `<input is="iron-input">`'s `maxlength` property. |
207 | 231 | */ |
208 | 232 | maxlength: { |
209 | 233 | type: Number |
210 | 234 | }, |
211 | 235 |
|
212 | 236 | /** |
213 | 237 | * The minimum (numeric or date-time) input value. |
214 | | - * Bind this to the `<input is="iron-input">`'s `min` property. |
| 238 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 239 | + * element, bind this to the `<input is="iron-input">`'s `min` property. |
215 | 240 | */ |
216 | 241 | min: { |
217 | 242 | type: String |
|
220 | 245 | /** |
221 | 246 | * The maximum (numeric or date-time) input value. |
222 | 247 | * Can be a String (e.g. `"2000-1-1"`) or a Number (e.g. `2`). |
223 | | - * Bind this to the `<input is="iron-input">`'s `max` property. |
| 248 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 249 | + * element, bind this to the `<input is="iron-input">`'s `max` property. |
224 | 250 | */ |
225 | 251 | max: { |
226 | 252 | type: String |
227 | 253 | }, |
228 | 254 |
|
229 | 255 | /** |
230 | 256 | * Limits the numeric or date-time increments. |
231 | | - * Bind this to the `<input is="iron-input">`'s `step` property. |
| 257 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 258 | + * element, bind this to the `<input is="iron-input">`'s `step` property. |
232 | 259 | */ |
233 | 260 | step: { |
234 | 261 | type: String |
235 | 262 | }, |
236 | 263 |
|
237 | 264 | /** |
238 | | - * Bind this to the `<input is="iron-input">`'s `name` property. |
| 265 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 266 | + * element, bind this to the `<input is="iron-input">`'s `name` property. |
239 | 267 | */ |
240 | 268 | name: { |
241 | 269 | type: String |
|
251 | 279 | }, |
252 | 280 |
|
253 | 281 | /** |
254 | | - * Bind this to the `<input is="iron-input">`'s `readonly` property. |
| 282 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 283 | + * element, bind this to the `<input is="iron-input">`'s `readonly` property. |
255 | 284 | */ |
256 | 285 | readonly: { |
257 | 286 | type: Boolean, |
258 | 287 | value: false |
259 | 288 | }, |
260 | 289 |
|
261 | 290 | /** |
262 | | - * Bind this to the `<input is="iron-input">`'s `size` property. |
| 291 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 292 | + * element, bind this to the `<input is="iron-input">`'s `size` property. |
263 | 293 | */ |
264 | 294 | size: { |
265 | 295 | type: Number |
|
268 | 298 | // Nonstandard attributes for binding if needed |
269 | 299 |
|
270 | 300 | /** |
271 | | - * Bind this to the `<input is="iron-input">`'s `autocapitalize` property. |
| 301 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 302 | + * element, bind this to the `<input is="iron-input">`'s `autocapitalize` property. |
272 | 303 | */ |
273 | 304 | autocapitalize: { |
274 | 305 | type: String, |
275 | 306 | value: 'none' |
276 | 307 | }, |
277 | 308 |
|
278 | 309 | /** |
279 | | - * Bind this to the `<input is="iron-input">`'s `autocorrect` property. |
| 310 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 311 | + * element, bind this to the `<input is="iron-input">`'s `autocorrect` property. |
280 | 312 | */ |
281 | 313 | autocorrect: { |
282 | 314 | type: String, |
283 | 315 | value: 'off' |
284 | 316 | }, |
285 | 317 |
|
286 | 318 | /** |
287 | | - * Bind this to the `<input is="iron-input">`'s `autosave` property, used with type=search. |
| 319 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 320 | + * element, bind this to the `<input is="iron-input">`'s `autosave` property, |
| 321 | + * used with type=search. |
288 | 322 | */ |
289 | 323 | autosave: { |
290 | 324 | type: String |
291 | 325 | }, |
292 | 326 |
|
293 | 327 | /** |
294 | | - * Bind this to the `<input is="iron-input">`'s `results` property, used with type=search. |
| 328 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 329 | + * element, bind this to the `<input is="iron-input">`'s `results` property, |
| 330 | + * used with type=search. |
295 | 331 | */ |
296 | 332 | results: { |
297 | 333 | type: Number |
298 | 334 | }, |
299 | 335 |
|
300 | 336 | /** |
301 | | - * Bind this to the `<input is="iron-input">`'s `accept` property, used with type=file. |
| 337 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 338 | + * element, bind this to the `<input is="iron-input">`'s `accept` property, |
| 339 | + * used with type=file. |
302 | 340 | */ |
303 | 341 | accept: { |
304 | 342 | type: String |
305 | 343 | }, |
306 | 344 |
|
307 | 345 | /** |
308 | | - * Bind this to the `<input is="iron-input">`'s `multiple` property, used with type=file. |
| 346 | + * If you're using PaperInputBehavior to implement your own paper-input-like |
| 347 | + * element, bind this to the`<input is="iron-input">`'s `multiple` property, |
| 348 | + * used with type=file. |
309 | 349 | */ |
310 | 350 | multiple: { |
311 | 351 | type: Boolean |
|
0 commit comments