Protected _insetProtected _limit0Protected _limit1Protected _majorProtected _majorProtected _minorProtected _minorProtected _s2ticksProtected _t01Protected _thumbProtected _thumbProtected _trackThe unique identifier for this control.
This is true if the control can respond to UI events else false.
Use enable() and disable() to enable and disable it.
This is true if the control background is opaque else false.
Use opaque() and transparent() display / hide the background.
This is true if the control is visible else false.
Use hide() and show() to set visibility.
The type name for this control.
(type name = class name without the Cvs prefix)
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 id
Optional rx: numberOptional ry: numberGet or set the corner radii used for this control.
To set the radii the parameters must be one of the following
If no parameter is passed or does not match one of the above then an array of the currently used radii values.
an array of the currently used radii values
Rest ...c: anyvalid radii combination
Disables this control.
this control
Optional cascade: booleanif true disable child controls
Enables this control.
this control
Optional cascade: booleanif true enable child controls
Make this control invisible.
this control
Optional cascade: booleanif true hide children
Checks whether a value is between the lower and upper limits for this control. It allows the user to prevalidate a value before attempting to change the control's value.
true if the value lies within the control's limits else false
value to test
Remove this control from its parent
this control
Makes the controls background opaque. The actual color depends on the controls color scheme.
The second parameter, alpha, is optional and controls the level of opaqueness from 0 - transparent to 255 - fully opaque (efault value).
this control
alpha value for controls background color.
Sets this controls display orientation to one of the four cardinal compass points. An invalid parameter will set the orientation to 'east' which is the default value.
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 id
Optional rx: numberx position relative to parent
Optional ry: numbery position relative to parent
Sets or gets the low and high thumb values for this control. If both parameters are within the ranger limits then they are accepted and the thumbs are moved to the correct position.
If either of the 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 id
If the name of a valid color scheme is provided then it will use it to display the control, non-existant scheme names will be ignored. In both cases this control is returned.
If there is no parameter it returns the name of the current color scheme used by this control.
this control or the control's color scheme
Optional name: stringthe color scheme name e.g. 'blue'
Optional cascade: booleanif true propogate scheme to all child controls.
This sets the event handler to be used when this control fires an event. The parameter can take one of three forms:
this control
the function to handle this control's events.
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 returned 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
If the parameter value is withing the slider limits it will move the thumb to the appropriate position. If no parameter is passed or is outside the limits this methods returns the current slider value.
the current value or this slider object
Optional value: numberthe selected value to be set
If both parameter values are within the ranger's limits it will move the thumbs to the appropriate positions. If no parameters are passed or if either is outside the ranger's limits this methods returns the an array containing the current ranger values.
an array of the current values or this ranger object.
Optional v0: numbervalue to set the first thumbs.
Optional v1: numbervalue to set the second thumbs.
Gets or sets the thickness of the track.
If there is no parameter the currect track thickness is returned. Any other value is constrained to the range ≥ 4 and ≤ 0.1 * control width.
the curent track thickness or this control
the required track thickness)
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.