Skip to content

Commit a2c3f21

Browse files
committed
Make the necessary changes mentioned by @xabbuh and add example for form
1 parent d4d1f12 commit a2c3f21

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: reference/forms/types/range.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The ``range`` field is a slider that is rendered using the HTML5
88
``<input type="range" />`` tag.
99

1010
+-------------+---------------------------------------------------------------------+
11-
| Rendered as | ``input`` ``range`` field (slider in html5 supported browser) |
11+
| Rendered as | ``input`` ``range`` field (slider in HTML5 supported browser) |
1212
+-------------+---------------------------------------------------------------------+
1313
| Inherited | - `data`_ |
1414
| options | - `disabled`_ |
@@ -18,8 +18,7 @@ The ``range`` field is a slider that is rendered using the HTML5
1818
| | - `label`_ |
1919
| | - `label_attr`_ |
2020
| | - `mapped`_ |
21-
| | - `max`_ |
22-
| | - `min`_ |
21+
| | - `attr`_ |
2322
| | - `required`_ |
2423
+-------------+---------------------------------------------------------------------+
2524
| Parent type | :doc:`text </reference/forms/types/text>` |
@@ -30,6 +29,12 @@ The ``range`` field is a slider that is rendered using the HTML5
3029
Basic Usage
3130
-----------
3231

32+
$builder->add('name', 'range', array(
33+
'attr' => array(
34+
'min' => 5,
35+
'max' => 50
36+
)
37+
));
3338

3439
Inherited Options
3540
-----------------

0 commit comments

Comments
 (0)