Slider - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
<SLIDER/> : FormField
The <SLIDER/> creates a user interactable sliding interface for quickly indicating numeric value(s).
- The minimum must be less than the maximum
- <SLIDER/> can only have even divisions of the full range of values
- <SLIDER/> always have an initial value, ensure that where employing Slider you expect and account for that
- <SLIDER/> divisions should always divide to a whole number given the range, see fig.a
Name | Type | Default | Description | Req |
---|---|---|---|---|
minimum | num | n/a | The minimum value the slider goes down to | ✔️ |
maximum | num | n/a | The maximum value the slider goes up to | ✔️ |
divisions | num | null | How many divisions within the min-max range there should be | |
range | bool | false | Should the slider allow for a ranged value |
<FML>
<CENTER>
<SLIDER id="s1" color="blue" minimum="1" maximum="4" value="2" width="300" divisions="3"/>
<SLIDER id="s2" color="cyan" minimum="0" maximum="100" value="100" width="300"/>
<SLIDER id="s3" color="teal" minimum="0" maximum="100" value="20,60" width="300" range="true"/>
</CENTER>
</FML>