Description
Basesliderthumb expects to be within a baseslidertrack (or its
subclass). In other words, its "classroot" should be a slidertrack.
Details
Properties (1)
-
showvalue
-
<attribute name="showvalue" value="${parent.parent.showvalue}" />
Toggles the floating value text when dragging thumb.
Methods (3)
-
setX()
-
<method name="setX" args="x" />
private function setX(x);
constrain to parents bounds, and adjust slider value when dragged
-
_thumbFromValue()
-
<method name="_thumbFromValue" />
private function _thumbFromValue();
compute thumb position from slider value
-
_valueFromThumb()
-
<method name="_valueFromThumb" />
private function _valueFromThumb();
compute slider value from thumb position
LZX Synopsis
<class name="
lz.basesliderthumb" extends="
lz.button
">
<attribute name="
showvalue
" value="
${parent.parent.showvalue}" />
<method name="
setX
" args="
x" />
</class>
JavaScript Synopsis
public
lz.basesliderthumb extends
lz.button
{
prototype private function
setX
(
x);
}