Slider.CreateOnClick

Syntax

CreateOnClick: Boolean

Description

The CreateOnClick property determines whether new sliders are created on clicking the Slider component.

Comments

Use JSON or the setCreateOnClick method to set the property value and the getCreateOnClick method to get the property value.

If the property is set to True, new sliders are created on clicking the component, otherwise they are not created.

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 creating of new sliders on clicking the Slider component:

// Set creating of new sliders on clicking the component
slider.setCreateOnClick(true);

Click on the component center.

After executing the example a new slider is added in the center of the Slider component:

See also:

 Slider