Slider.AttachToTicks

Syntax

AttachToTicks: Boolean

Description

The AttachToTicks property determines if sliders are bound to labels of the Slider component.

Comments

Use JSON or the setAttachToTicks method to set the property value and the getAttachToTicks method to get the property value.

If the property is set to True, sliders will be bound to labels, otherwise they will be not.

By default the property is set to False.

Example

To execute the example, the page must contain the Slider component named slider (see Example of Creating the Slider Component). Set sliders binding to labels of the Slider component:

// Set sliders binding to component labels
slider.setAttachToTicks(true);

After executing the example binding to component labels is set for the sliders:

See also:

 Slider