Protected
_limit0Protected
_limit1Protected
_majorProtected
_minorProtected
_s2ticksProtected
_t01The event handler for this control. Although it is permitted to set
this property directly it is recommended that the setAction(...)
method is used to define the event handler actions.
Add a child to this control using its relative position [rx, ry]. If rx and ry are not provided then it uses the values set in the child.
this control
is the actual control or its name
Optional
rx: numberOptional
ry: numberSet or get the corner radii used for this control
an array with the 4 corner radii
an array of 4 corner radii
Disables this control
this control
Optional
cascade: booleanif true disable child controls
Enables this control
this control
Optional
cascade: booleanif true enable child controls
Calculates the absolute position on the canvas taking into account any ancestors
the actual position in the canvas
this controls parent
Make this control invisible
this control
Optional
cascade: booleanif true hide children
Remove this control from its parent
this control
Makes the controls background opaque. The actual color depends on the controls color scheme
this control
Specify the orientation to show this control
this control
'north', 'south', 'east' or 'west'
Adds this control to another control which becomes its parent
this control
is the parental control or its name
Optional
rx: numberx position relative to parent
Optional
ry: numbery position relative to parent
Sets or gets the low and high values for this control. If both parameters and within the rangers limits then they are used to set the low and high values of the ranger and move the thumbs to the correct postion.
If one or both parameters are invalid then they are ignored and the method returns the current range low and high values.
this control or the low/high values
Optional
v0: numberlow value
Optional
v1: numberhigh value
Remove a child control from this one so that it stays in same screen position
this control
the control to remove or its name
Sets or gets the color scheme used by this control.
this control or the control's color scheme
Optional
id: stringOptional
cascade: booleanThis sets the event handler to be used when this control fires an event. The parameter can take three forms:
this control
the function to handle this controls event
Make this control visible
this control
Optional
cascade: booleanif true show children
Shrink the control to fit contents.
To shrink on one dimension only pass either 'w' (width) or 'h' (height) to indicate which dimmension to shrink
this control
Optional
dim: stringthe dimension to shrink
The track can be divided up into a number of domains separated with major ticks. The major domains and be further divided into subdomains separated with minor ticks. If the final parameter is true then values retqurned by the slider are consrained to the tick values.
this slider object
the number of major domains on the track
the number of minor domains between major ticks
Optional
stick2ticks: booleanslider value is constrainged to tick values
Makes the controls background fully transparent.
this control
Generated using TypeDoc
This class represents a slider with 2 draggable thumbs to define a value within user defined limits.
Major and minor tick marks can be added to the bar and supports stick-to-ticks if wanted.