You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 30, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,15 +232,15 @@ _Example radio field_
232
232
233
233
---
234
234
#### Select form field
235
-
>The select field allows selection via dropdown with the select element.
235
+
>The select field allows selection via dropdown using the select element.
236
236
237
-
##### default (string)
237
+
##### default (number)
238
238
>The default can be set to the index of one of the `options`.
239
239
240
240
##### options (array)
241
241
>`options` is an array of options for the select form field to display. Each option should be an object with a `name`(string). You may optionally add a `group` to some or all of your options.
242
242
243
-
_Example radio field_
243
+
_Example select field_
244
244
```json
245
245
{
246
246
"key": "transportation",
@@ -290,9 +290,47 @@ _Example radio field_
290
290
291
291
---
292
292
#### Number form field
293
+
>The number field allows input that is restricted to numbers. Browsers also provide minimal ui to increase and decrease the current value.
294
+
295
+
##### default (number, optional)
296
+
297
+
##### min (number, optional)
298
+
>`min` sets minimum acceptable value for the input.
299
+
300
+
##### max (number, optional)
301
+
>`max` sets maximum acceptable value for the input.
302
+
303
+
##### minlength (number, optional)
304
+
>`minlength` sets minimum number of characters for the input. If a number less than this value it will not be submitted with the form. eg 1000 is 4 characters long and if `minlength` is set to 5, it would not be sent. Currently there is no error displayed to the user if they do not meet the requirement.
305
+
306
+
##### maxlength (number, optional)
307
+
>`maxlength` sets maximum number of characters for the input. If a number is greater than this value it will not be submitted with the form. eg 1000 is 4 characters long and if `maxlength` is set to 2, it would not be sent. Currently there is no error displayed to the user if they do not meet the requirement.
308
+
309
+
_Example number field_
310
+
```json
311
+
{
312
+
"key": "love",
313
+
"type": "number",
314
+
"label": "How much love?",
315
+
"default": 2,
316
+
"min": 0,
317
+
"max": 100,
318
+
"required": true
319
+
}
320
+
```
293
321
294
322
---
295
323
#### Password form field
324
+
>The password field allows password input, it uses an input with `type='password'`.
0 commit comments