Tracks which widgets are currently "active". A widget is considered active if it or a descendant widget has focus, or if a non-focusable node of this widget or a descendant was the most recent node to get a touchstart/mousedown/pointerdown event.
Emits non-bubbling delite-activated and delite-deactivated events on widgets
as they become active, or stop being active, as defined above.
Call activationTracker.on("active-widget-stack", callback) to track the stack of currently active widgets.
Call activationTracker.on("deactivated", func) or activationTracker.on("activated", ...) to monitor when
when widgets become active/inactive.
Members
-
<static> activeStack
-
List of currently active widgets (focused widget and its ancestors).
- Source:
Properties:
Name Type Description activeStackArray.<Element>
Methods
-
<static> registerIframe(iframe) → {Object}
-
Registers listeners on the specified iframe so that any pointerdown or focus event on that iframe (or anything in it) is reported as a focus/pointerdown event on the
<iframe>itself.In dijit this was only used by editor; perhaps it should be removed.
Parameters:
Name Type Description iframeHTMLIframeElement - Source:
Returns:
Handle with
remove()method to deregister.- Type
- Object