# GraffitiSlider
Class Inherits GraffitiWebUIControl
## About
A custom slider component for single value or range selection.
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| HandleStyles | Round <br> Square <br> Triangle | Supported knob handle styles. |
| TooltipPositions | TopLeft <br> BottomRight | Supported value tooltip positions relative to handle. |
| TooltipVisibilities | Show <br> Hide <br> Always | Supported tooltip visibility models. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Change | (None) | (None) | This event is raised when the user changes the value of the slider by interacting with it. |
| GotFocus | (None) | (None) | |
| LostFocus | (None) | (None) | |
| MouseEnter | (None) | (None) | |
| MouseExit | (None) | (None) | |
| Open | (None) | (None) | |
| Shown | (None) | (None) | |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AddRangeStyle | startValue as Double <br> endValue as Double <br> Optional theStyle as GraffitiStyle | (None) | Adds a WebStyle to the specified portion of the slider's background. |
| AddTick | tickPosition as Integer <br> tickLabel as String | (None) | Adds a tick position with label to the slider. |
| RemoveAllRangeStyles | (None) | (None) | Removes all previously added ranged WebStyles. |
| RemoveAllTicks | (None) | (None) | Removes all previously added tick positions. |
| RemoveRangeStyle | rangeStart as Double | (None) | Removes the Range Style whose start position matches the supplied value. |
| RemoveTick | tickPositon as Integer | (None) | Removes a previously set tick point. |
## Shared Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| HTMLHeader | CurrentSession as WebSession | String | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AcceptFocus | Boolean | Nil | When True, the slider will accept focus by either user tabbing or click. |
| Enabled | Boolean | Nil | |
| HandleStyle | HandleStyles | Nil | The design used for the slider's handles. |
| LogarithmicScale | Boolean | Nil | If True, uses a logarithmic scale for ticks that is calculated based on the difference between min to max. If False, uses a linear scale at regular intervals. |
| MaxValue | Double | Nil | The maximum selectable value of the slider. |
| MinValue | Double | Nil | The minimum selectable value of the slider. |
| oldStyle | GraffitiStyle | Nil | |
| Precision | Integer | Nil | The number of digits displayed after the decimal point. |
| Range | Boolean | Nil | When True, the slider uses two knobs to allow the selection of a range of values rather than a singular value. |
| RealtimeChange | Boolean | Nil | When False, the value will only be updated when the handle(s) is released. |
| Reversed | Boolean | Nil | When True, the lower end of the value range is to the left. |
| StepValue | Integer | Nil | The size of steps when clicking the slider track. |
| StyleHandle | GraffitiStyle | Nil | WebStyle applied to handles. |
| StyleSelection | GraffitiStyle | Nil | WebStyle applied to the area of the current value. |
| StyleTick | GraffitiStyle | Nil | WebStyle applied to ticks. |
| StyleTickLabel | GraffitiStyle | Nil | WebStyle applied to ticks. |
| StyleTickSelected | GraffitiStyle | Nil | Applies the specified GraffitiStyle classname to the ticks of the slider that reside within the value. |
| TicksSnapRadius | Double | Nil | Snapping radius of handles to ticks. |
| TooltipPosition | TooltipPositions | Nil | Location of the value tooltip relative to the handle. |
| TooltipVisibility | TooltipVisibilities | Nil | Whether to show the tooltip on drag, hide the tooltip, or always show the tooltip. |
| Value | Double | Nil | Current value, or low value when Ranged = True. |
| ValueHigh | Double | Nil | Current high value when Ranged = True. |