class-property
flagrate.Form.inputType
flagrate.Form.inputType → Object
Built-in input types
- text ->
String
- password ->
String
- textarea ->
String
- number ->
Number
- combobox ->
String
- checkbox ->
Boolean
- checkboxes ->
Array
- switch ->
Boolean
- radios ->
any
- select ->
any
|Array
- file ->
File
- files ->
FileList
text -> String
most basic single-line text input. (uses flagrate.TextInput)
placeholder
(String):icon
(String):maxLength
(Number):
password -> String
password input. Almost the same to text.
textarea -> String
textarea input. (uses flagrate.TextArea)
placeholder
(String):icon
(String):maxLength
(Number):
number -> Number
number input. (uses flagrate.TextInput)
placeholder
(String):icon
(String):min
(Number):max
(Number):maxLength
(Number):
combobox -> String
combobox input. (uses flagrate.ComboBox)
placeholder
(String):icon
(String):maxLength
(Number):items
(Array): of String values.
checkbox -> Boolean
Checkbox input. (uses flagrate.Checkbox)
label
(String):icon
(String):
checkboxes -> Array
Checkboxes input. (uses flagrate.Checkboxes)
items
(Array):
switch -> Boolean
Switch input. (uses flagrate.Switch)
radios -> any
Radio buttons input. (uses flagrate.Radios)
items
(Array):
select -> any
|array
Select input. (uses flagrate.Select)
items
(Array):listView
(Boolean; defaultfalse
):multiple
(Boolean; defaultfalse
):max
(Number; default-1
):selectedIndex
(Number):selectedIndexes
(Array): of Number
file -> File
File input for File API
accept
(String): pass toaccept
attribute value.acceptTypes
(Array): Array of MIME type string.
files -> FileList
File input for File API
accept
(String): pass toaccept
attribute value.acceptTypes
(Array): Array of MIME type string.