Class: SliderControl

Cadcorp.UI.SliderControl

new SliderControl(config)

Makes an element into a horizontal slider
Parameters:
Name Type Description
config Object Configuration for this object. The config supplied directly extends the control

Members

customValues

Properties:
Name Type Description
customValues Array.<number>

id

Properties:
Name Type Description
id string The id for this control

max

Properties:
Name Type Description
max number The maximum value for the slider

min

Properties:
Name Type Description
min number The minimum value for the slider

parentControl

Properties:
Name Type Description
parentControl string The asp.net client id

step

Properties:
Name Type Description
step number Determines the size or amount of each interval or step the slider takes between the min and max. The full specified value range of the slider (max - min) should be evenly divisible by the step.

value

Properties:
Name Type Description
value number The current value for the slider

Methods

setValue(value)

Sets the current value
Parameters:
Name Type Description
value number The new value to set

Events

changed

Fired when the slider value changes
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.SliderControl The sender of the event
value number The new value for the slider