ui.Slider.setValue

Set the value of the slider.

Returns this slider.

UsageReturns
Slider.setValue(value, trigger)ui.Slider
ArgumentTypeDetails
this: ui.sliderui.Slider

The ui.Slider instance.

valueNumber

The value to slider.

triggerBoolean, optional

Whether to trigger onChange callbacks when the value property changes. Defaults to true.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!