File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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
3029Basic Usage
3130-----------
3231
32+ $builder->add('name', 'range', array(
33+ 'attr' => array(
34+ 'min' => 5,
35+ 'max' => 50
36+ )
37+ ));
3338
3439Inherited Options
3540-----------------
You can’t perform that action at this time.
0 commit comments