<input type="range">
.
Example:
[html]
<label for="volume1">volume1:</label>
<input type="range" name="volume1" id="volume1" value="50" min="0" max="100">[/html]
Use the following attributes to specify restrictions.
data-show-value="true"
.
Example:
[html]<input type="range" data-show-value="true">[/html]
To popup a value on the screen while sliding, add data-popup-enabled="true"
.
Example:
[html]<input type="range" data-popup-enabled="true">[/html]
In order to highlight the track up to the slider value, add data-highlight="true"
.
Example:
[html]<input type="range" data-highlight="true">[/html] <input type="checkbox">
and then specifying the attribute data-role="flipswitch"
.
Example:
[html]
<label for="switch1" toggle="" switch="" checkbox:<="" label="">
<input type="checkbox" data-role="flipswitch" name="switch1" id="switch1">[/html]
The text on the flip switch by default will be "On" and "Off". To on/off the switch, use the attributes data-on-text
and data-off-text
.
Example:
[html]<label for="switch2">Toggle switch checkbox:</label>
<input type="checkbox" data-role="flipswitch" name="switch2" id="switch2" data-on-text="True" data-off-text="False">[/html]
The attribute "checked"
to set one of the options selected by default.
Example:
[html]<label for="switch3">Toggle switch checkbox:</label>
<input type="checkbox" data-role="flipswitch" name="switch3" id="switch3" checked>[/html]
Sliders will do react to the keyboard shortcuts. To increase the current value the Right Arrow, Up Arrow, and Page Up keys can be used. To decrease the current value the Left Arrow, Down Arrow, and Page Down keys can be used. To move the slider to its minimum or maximum value use the Home and End keys respectively.