SpinButton

A spin button allows someone to incrementally adjust a value in small steps. It’s mainly used for numeric values, but other values are supported too.

Properties#

NameTypeDefaultDescription
valuenumberCurrent value of the SpinButton.
labelstringDescriptive label for the control.
minnumberThe min value of the SpinButton.
maxnumberThe max value of the SpinButton.
stepnumberThe difference between the two adjacent values of the SpinButton.
iconstringIcon to display alongside the control's label.
datastringAdditional data attached to the control. The value is passed in change event data along with the SpinButton value.

Events#

NameDescription
changeFires when the value of the SpinButton has been changed.

Examples#

Adding a new slider:

enabled = page.add(SpinButton(label="Basic SpinButton", min=0, max=100))