<baseslider>
A non-visual base class for implementing sliders.

JavaScript: lz.baseslider

Baseslider is a non-visual representation of a slider.

The base class for implementing sliders representing a range of values.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
bordersize number Number 1 read/write
  The border width. This can be set with a style.
keystep number Number 1 read/write
  How far to move value when key navigating.
maxvalue number Number 100 read/write
  The maximum value.
minvalue number Number 0 read/write
  The minimum value.
showfill expression any true read/write
  Turns on / off the slider's filled area.
showrange boolean boolean true read/write
  Turns on / off the bounding range text.
showvalue boolean boolean true read/write
  Turns on / off the floating value text when the user drags.
thumbheight number Number 18 read/write
  The height of the thumb.
thumbwidth number Number 10 read/write
  The width of the thumb.
track expression any   read/write
   
trackheight number Number 8 read/write
  The height of the track.

Attributes inherited from <basevaluecomponent>

type, value

Methods

getMaxValue()
baseslider.getMaxValue();
Get the maximum value of the slider.
Returns Type Description
  Number the maximum value.

getMinValue()
baseslider.getMinValue();
Get the minimum value of the slider.
Returns Type Description
  Number the minimum value.

getPercentage()
baseslider.getPercentage();
Get the percentage of the range selected by the value.
Returns Type Description
  Number the percentage selected.

setMaxValue()
baseslider.setMaxValue(v : Number);
Set the maximum value.
Parameter Name Type Description
v Number the maximum value.

setMinValue()
baseslider.setMinValue(v : Number);
Set the minimum value.
Parameter Name Type Description
v Number the minimum value.

setPercentage()
baseslider.setPercentage(p : Number);
Set the value by percentage of range from min to max.
Parameter Name Type Description
p Number a percentage between the min and the max.

setValue()
baseslider.setValue(v : Number);
Sets the value for the slider that must be within min and max.
Parameter Name Type Description
v Number a number between the minimum and maximum value for the slider.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onmaxvalue  
onminvalue  

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy