(→) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
_input | _input | ||
===Synopsis=== | ===Synopsis=== | ||
− | How to render | + | How to render an input slider |
+ | |||
===Description=== | ===Description=== | ||
Used to get a value between x and y, presented to the user as a slider. | Used to get a value between x and y, presented to the user as a slider. | ||
ws-class-props | |||
---|---|---|---|
Line 1: | Line 1: | ||
− | + | {{Doc properties | |
+ | |Doc subject=DevOps:Doc/FlexForm | ||
+ | |Subject version=1.0,1.1 | ||
+ | |Doc parent=DevOps:Doc/FlexForm/1.0/input | ||
+ | |Doc sort order=110 | ||
+ | |Doc target group=User | ||
+ | |Doc synopsis=How to render an input slider | ||
+ | }} | ||
ws-page-props | |||
Line 1: | Line 1: | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:59, 22 September 2022
Name
range
Type
_input
Synopsis
How to render an input slider
Description
Used to get a value between x and y, presented to the user as a slider.
Parameters
type="range"
Other options : autocomplete list min max step value
All other valid parameters for an input field are valid
Example
<_input type="range" min="5" max="10" step="0.01" />
Note
By default, the granularity, is 1, meaning that the value is always an integer. You can change the step attribute to control the granularity. For example, If you need a value between 5 and 10, accurate to two decimal places, you should set the value of step to 0.01.
If you want to accept any value regardless of how many decimal places it extends to, you can specify a value of "any" for the step attribute.