slider
Last updated
Last updated
This type represents a slider control.
Constructs the slider.
Arguments
Name
Type
Description
id
Control ID.
low
float
Minimum value.
high
float
Maximum value.
fmt
table[...]
Format. Defaults to {'%.0f'}
.
step
float
Step value. Defaults to 1.0
.
Format Table
Formatting uses standard printf
syntax.
Passing invalid format will lead to an undefined behavior.
1. Single Formatting.
Type
Description
string
Format string.
2. Multi Formatting.
Name
Type
Description
min
float?
Minimal value.
add
float?
Add step.
fmt
string
Format string.
Returns
Type
Description
slider
Slider object.
Example
Returns slider' value.
Arguments
None.
Returns
Type
Description
Value data.
Example