Private _assignPrivate _fromPrivate _generatePrivate _invertPrivate _lastOptional _lastOptional _layoutPrivate _maxPrivate _minPrivate _minOptional _needsPrivate _orientationPrivate _roundPrivate _seekPrivate _seekPrivate _seekPrivate _seekPrivate _sliderPrivate _speechPrivate _speechPrivate _speechPrivate _stepPrivate _tabbablePrivate _tickPrivate _tickPrivate _ticksPrivate _ticksPrivate _updatePrivate _updatePrivate _valuePrivate _wheelOptional canvasOptional closedivOptional e: NotifyEventOptional focusOptional forceOptional itemOptional startOptional touchGets/sets context menu of the control. It could be also a function returning Menu object.
Gets/sets data-disabled attribute of the control and his childs
Gets/sets dock menu of the control. It could be also a function returning Menu object.
Gets/sets dock title.
Gets/sets dockable status of the control.
If true, show slider value with beginning in zero
false
If true, reverse direction of the slider.
false
Gets/sets isDock status of the control.
Get/set whether this control is searchable (e.g. via search bar)
Get/set maximal value of the slider.
0
Get/set minimal value of the slider.
0
Slider orientation. Possible values: 'vertical', 'horizontal'
'horizontal'
For screen readers, is is the number of decimals that the screen reader outputs when reading the slider value.
0
For screen readers, is is the name of the slider. (For example: "Volume")
undefined
For screen readers, this is the unit that the screen readers say when reading the slider value. (For example: "Percent")
undefined
Get/set step of the slider. 0 means no discrete step.
0
Gets/sets tabIndex property. Use instead of tabIndex in HTMLElement for correct handling of disabled state.
If true, enables focusing control and controlling by arrow keys.
true
Slider ticks interval.
1
Slider ticks placement. Possible values: 'none', 'both', 'bottomRight', 'topLeft', 'center'
'none'
Array of slider ticks values. For regular ticks user should rather use tickInterval.
[]
Get/set actual value of the slider.
0
Gets/sets visibility state of the control.
Get/set wheel step of the slider (step used by mouse wheel). Default is undefined = wheel uses "step" property.
undefined
Creates a new sub-control.
Class of the new control.
Optional initParams: AnyDictInitialization parameters.
The new control.
addControl
Control is allow drop objects.
true if dragged object can be dropped here
canDrop
Handle drag enter operation
dragEnter
Optional e: NotifyEventHandle drag leave operation
dragLeave
Handle drag over operation
dragOver
Handle drop operation
Optional isSameControl: booleandrop
Gets new drop mode
Drop mode
getDropMode
Returns the first ancestor in the HTML DOM tree, that has controlClass and data-id. Searching is stopped on topParentCtrl, if defined.
ControlClass of the top parent, where to stop searching.
Parent Control or undefined if there's no parent.
getParentControl
This method is pretty similar as app.listen(), but app.unlisten() is called automatically in Control.cleanUp()
Object where to set listener
Event of the listener
Method for callback dispatch
Optional capture: booleanRest ...args: any[]localListen
Raise the event on the Control
Name of the event
Optional details: AnyDictCustom parameters to be sent with the event
Optional isCancelable: booleanWhether the event can be canceled.
Optional canBubble: booleanWhether the event can bubble.
Optional sender: EventTargetof the event. Container by default.
Success. If 'false', the event was canceled.
if (!this.raiseEvent('selecting', {
tabIndex: value,
oldTabIndex: oldSelected
}, true))
return; // canceled, do not change selection
Request an animation frame in the control context. If the control has been cleaned up, then the callback will not execute.
Callback to run.
Optional callbackID: stringOptional ID for callback, so that multiple instances of the callback do not execute at the same time.
this.requestFrame(function () {
// this callback will be executed at a maximum of your monitor's natural refresh rate.
}, "myUniqueFrameCallbackName");
Request an animation frame in the control context, with the same features as requestAnimationFrameMM(). If the control has been cleaned up, then the callback will not execute.
Callback to run.
Optional callbackID: stringOptional ID for callback, so that multiple instances of the callback do not execute at the same time.
this.requestFrame(function () {
// this callback will be executed at a maximum of your monitor's natural refresh rate when focused, maximum of 30 fps when not focused, and maximum of 2 fps when window is not visible.
}, "myUniqueFrameCallbackName");
requestFrameMM
Calls requestIdleCallback, cancels the previous sheduled callback on cleanup or multiple calls
Callback, which should be called when idle
Optional callbackID: stringString name, which identifies the callback. If present, it cancels the previous sheduled callback
Optional useFirst: booleanValid only if callbackID is present, if true, previous unfinished timer is finished and the last is revoked
requestIdle
Calls setTimeout, cancels the previous sheduled callback on cleanup or multiple calls
Callback, which should be called after timeout
Timeout, in ms
Optional callbackID: stringString name, which identifies the callback. If present, it cancels the previous sheduled callback
Optional useFirst: booleanValid only if callbackID is present, if true, previous unfinished timer is finished and the last is revoked
requestTimeout
Restores state of the control and all its subcontrols having data-id specified.
hierarchical object including states of the control and the subcontrols
Optional isJustViewModeChange: booleanrestoreState
Stores state of the control and all its subcontrols having data-id specified.
hierarchical object including states of the control and the subcontrols
storeState
Method for handling Promise with delayed progress.
Passed promise
Optional params: anyObject with possible parameters:
thenWithProgress
UI Slider element
Slider