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

reference/forms/types/range.rst

Lines changed: 8 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy