slider
Module(s): vncanvas-base, vncanvas-form
Description: Creates a HTML form slider(range) element with corresponding label.
- Note: Use only on a 'form', not a 'cform'
- Instantiating form elements without using "form" is not recommended.
slider, {param} |
Creates a slider. Parameters are given as {param:value, param:value, ...} |
| Parameter | Attributes and Description |
|---|---|
|
name:"slider_label"
|
This sets the label and id of the slider.
|
|
min:number
|
Optional
This sets the minimum value for the slider.
|
|
max:number
|
Optional
This sets the maximum value for the slider.
|
|
step:number
|
Optional
This sets the increment value for the slider.
|
|
bind:"variable"
|
The corresponding variable to bind the
slider to. Moving the slider thumb updates
the bound variable. "variable" can be a config or user variable.
|
|
tip:"tool_tip_to_display"
|
Optional
The tooltip to display when mouse hovers
over its label.
|
The following slider is bound to a configuration variable named "audioVolume".
chapter = [
...
slider, {name:"Audio volume",
min:0,
max:1,
step:0.05,
bind:"audioVolume",
tip:"Adjust audio volume"},
...
];