Slider.CreateOnClick

Syntax

CreateOnClick: Boolean

Description

The CreateOnClick property determines whether new sliders are created on clicking the Slider component with the left mouse button.

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 component with the left mouse button, 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 with the left mouse button:

// Set creating of newsliders on clicking the component with the left mouse button
slider.setCreateOnClick(true);

Click on the component center with the left mouse button.

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

See also:

 Slider