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
Copy file name to clipboardExpand all lines: docs/components/form.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -578,7 +578,7 @@ end
578
578
579
579
### Example 4: Multiple input fields of different types
580
580
581
-
Of course, our input core component accepts not only 'text', but very different input types: In this example, we will introduce 'password', 'number', 'email', 'textarea' types!
581
+
Of course, our input core component accepts not only 'text', but very different input types: In this example, we will introduce 'password', 'number', 'email', 'range', 'textarea' types!
582
582
583
583
On our example page, we define the input fields, together with a `type: X` configuration:
584
584
@@ -592,6 +592,7 @@ class ExamplePage < Matestack::Ui::Page
Again, we can visit our example page on `localhost:3000/example` and are welcome by the preselected status of our `TestModel` instance. Changing the value of the status by toggling the radio button and filling in a description plus submitting it works just as before!
1330
+
1331
+
#### Example 10.4: The Range Input
1332
+
1333
+
Whilst working similiar to the 'text' input, the range input accepts a few more parameters. It accepts also 'min', 'max', 'step', 'list' as optional parameters.
1334
+
1335
+
##### Example 10.4.1: Range input with max, min, step set
0 commit comments