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
+68-5Lines changed: 68 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,8 @@ Below is a detailed description of each form fields and its custom properties.
147
147
148
148
#### Text form field
149
149
>The text field allows single line input with a input element set to `type='text'`. It doesn't have any custom properties.
150
-
##### default (string)
150
+
151
+
##### default (string, optional)
151
152
152
153
_Example text field_
153
154
```json
@@ -162,7 +163,9 @@ _Example text field_
162
163
---
163
164
#### Textarea form field
164
165
>The textarea field creates multiline input with a textarea element.
165
-
##### default (string)
166
+
167
+
##### default (string, optional)
168
+
166
169
##### lines (number)
167
170
>`lines` sets the rows attribute for the textarea element.
168
171
@@ -180,7 +183,8 @@ _Example textarea field_
180
183
---
181
184
#### Checkbox form field
182
185
>The checkbox field allows checkbox input with a input element set to `type='checkbox'`. It doesn't have any custom properties.
183
-
##### default (boolean)
186
+
187
+
##### default (boolean, optional)
184
188
185
189
_Example checkbox field_
186
190
```json
@@ -194,8 +198,10 @@ _Example checkbox field_
194
198
195
199
#### Radio form field
196
200
>The radio field allows multiple choice input with a series of linked inputs, with `type='radio'`.
197
-
##### default (string)
198
-
>The default should be set to the `value` of one of the `options`.
201
+
202
+
##### default (string, optional)
203
+
>The default can be set to the `value` of one of the `options`.
204
+
199
205
##### options (array)
200
206
>`options` is an array of options for the radio form field to display. Each option should be an object with a `name`(string) and `value`(string or number).
201
207
@@ -222,7 +228,64 @@ _Example radio field_
222
228
]
223
229
}
224
230
```
231
+
225
232
#### Select form field
233
+
>The select field allows selection via dropdown with the select element.
234
+
235
+
##### default (string)
236
+
>The default can be set to the index of one of the `options`.
237
+
238
+
##### options (array)
239
+
>`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.
0 commit comments