|
| 1 | +.. index:: |
| 2 | + single: Forms; Fields; range |
| 3 | + |
| 4 | +range Field Type |
| 5 | +================ |
| 6 | + |
| 7 | +The ``range`` field is a slider that is rendered using the HTML5 |
| 8 | +``<input type="range" />`` tag. |
| 9 | + |
| 10 | ++-------------+---------------------------------------------------------------------+ |
| 11 | +| Rendered as | ``input`` ``range`` field (slider in html5 supported browser) | |
| 12 | ++-------------+---------------------------------------------------------------------+ |
| 13 | +| Inherited | - `data`_ | |
| 14 | +| options | - `disabled`_ | |
| 15 | +| | - `empty_data`_ | |
| 16 | +| | - `error_bubbling`_ | |
| 17 | +| | - `error_mapping`_ | |
| 18 | +| | - `label`_ | |
| 19 | +| | - `label_attr`_ | |
| 20 | +| | - `mapped`_ | |
| 21 | +| | - `max`_ | |
| 22 | +| | - `min`_ | |
| 23 | +| | - `required`_ | |
| 24 | ++-------------+---------------------------------------------------------------------+ |
| 25 | +| Parent type | :doc:`text </reference/forms/types/text>` | |
| 26 | ++-------------+---------------------------------------------------------------------+ |
| 27 | +| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RangeType` | |
| 28 | ++-------------+---------------------------------------------------------------------+ |
| 29 | + |
| 30 | +Basic Usage |
| 31 | +----------- |
| 32 | + |
| 33 | + |
| 34 | +Inherited Options |
| 35 | +----------------- |
| 36 | + |
| 37 | +These options inherit from the :doc:`form </reference/forms/types/form>` |
| 38 | +type: |
| 39 | + |
| 40 | +.. include:: /reference/forms/types/options/attr.rst.inc |
| 41 | + |
| 42 | +.. include:: /reference/forms/types/options/disabled.rst.inc |
| 43 | + |
| 44 | +.. include:: /reference/forms/types/options/error_bubbling.rst.inc |
| 45 | + |
| 46 | +.. include:: /reference/forms/types/options/error_mapping.rst.inc |
| 47 | + |
| 48 | +.. include:: /reference/forms/types/options/label.rst.inc |
| 49 | + |
| 50 | +.. include:: /reference/forms/types/options/label_attr.rst.inc |
| 51 | + |
| 52 | +.. include:: /reference/forms/types/options/mapped.rst.inc |
| 53 | + |
| 54 | +.. include:: /reference/forms/types/options/read_only.rst.inc |
| 55 | + |
| 56 | +.. include:: /reference/forms/types/options/required.rst.inc |
0 commit comments