.. default-domain:: lua .. highlight:: lua .. currentmodule:: UI Slider ====== .. class:: Slider A control for choosing a number by dragging a handle along a track. Added to a :class:`UI.Canvas` or a :class:`UI.Panel`. | Base class: :class:`UI.InputControl` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`UI.InputControl`: :attr:`changed ` * From :class:`UI.Control`: :attr:`interactable `, :attr:`color `, :attr:`tooltip ` * From :class:`UI.Object`: :attr:`rect_transform `, :attr:`layout_element `, :attr:`visible `, :meth:`remove ` .. attribute:: value: number The value of the slider, between :attr:`UI.Slider.min` and :attr:`UI.Slider.max`. Setting a value outside the range is refused. :Attribute: Can be read or written .. attribute:: min: number The value at the low end of the slider, which is its left hand end, or the bottom of a vertical slider. Must not be greater than :attr:`UI.Slider.max`. :Attribute: Can be read or written .. attribute:: max: number The value at the high end of the slider, which is its right hand end, or the top of a vertical slider. Must not be less than :attr:`UI.Slider.min`. :Attribute: Can be read or written