@@ -10,16 +10,17 @@ The ``range`` field is a slider that is rendered using the HTML5
10
10
+-------------+---------------------------------------------------------------------+
11
11
| Rendered as | ``input `` ``range `` field (slider in HTML5 supported browser) |
12
12
+-------------+---------------------------------------------------------------------+
13
- | Inherited | - `data `_ |
14
- | options | - `disabled `_ |
13
+ | Inherited | - `attr `_ |
14
+ | options | - `data `_ |
15
+ | | - `disabled `_ |
15
16
| | - `empty_data `_ |
16
17
| | - `error_bubbling `_ |
17
18
| | - `error_mapping `_ |
18
19
| | - `label `_ |
19
20
| | - `label_attr `_ |
20
21
| | - `mapped `_ |
21
- | | - `attr `_ |
22
22
| | - `required `_ |
23
+ | | - `trim `_ |
23
24
+-------------+---------------------------------------------------------------------+
24
25
| Parent type | :doc: `text </reference/forms/types/text >` |
25
26
+-------------+---------------------------------------------------------------------+
@@ -29,6 +30,8 @@ The ``range`` field is a slider that is rendered using the HTML5
29
30
Basic Usage
30
31
-----------
31
32
33
+ .. code-block :: php
34
+
32
35
$builder->add('name', 'range', array(
33
36
'attr' => array(
34
37
'min' => 5,
@@ -44,18 +47,26 @@ type:
44
47
45
48
.. include :: /reference/forms/types/options/attr.rst.inc
46
49
50
+ .. include :: /reference/forms/types/options/data.rst.inc
51
+
47
52
.. include :: /reference/forms/types/options/disabled.rst.inc
48
53
54
+ .. include :: /reference/forms/types/options/empty_data.rst.inc
55
+ :end-before: DEFAULT_PLACEHOLDER
56
+
57
+ The default value is ``'' `` (the empty string).
58
+
59
+ .. include :: /reference/forms/types/options/empty_data.rst.inc
60
+ :start-after: DEFAULT_PLACEHOLDER
61
+
49
62
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
50
63
51
64
.. include :: /reference/forms/types/options/error_mapping.rst.inc
52
65
53
66
.. include :: /reference/forms/types/options/label.rst.inc
54
67
55
- .. include :: /reference/forms/types/options/label_attr.rst.inc
56
-
57
68
.. include :: /reference/forms/types/options/mapped.rst.inc
58
69
59
- .. include :: /reference/forms/types/options/read_only .rst.inc
70
+ .. include :: /reference/forms/types/options/label_attr .rst.inc
60
71
61
72
.. include :: /reference/forms/types/options/required.rst.inc
0 commit comments