The floating window component cq-floating-window.
Creates a floating window that users can move and resize.
- Since:
-
8.2.0
Classes
Members
-
windowImplementation
-
A reference to the class that implements the floating window.
- Since:
-
8.2.0
- Default Value:
Methods
-
onShortcut(params)
-
The listener for "floatingWindow" events where the
typeparameter of the event is "shortcut" (see floatingWindowEventListener).Creates and positions a floating window.
Parameters:
Name Type Description paramsobject Listener parameters.
Properties
Name Type Argument Description contentstring The contents of the floating window, typically an HTML string.
containerHTMLElement <optional>
The DOM element that visually contains the floating window. The window is positioned on screen relative to the element (see WebComponents.cq-floating-window.DocWindow#positionRelativeTo). Defaults to
document.body.titlestring <optional>
Text that appears in the title bar of the floating window.
widthnumber <optional>
The width of the floating window in pixels.
statusboolean <optional>
The state of the floating window: true, to open the window; false, to close it. If the parameter is not provided, the floating window is toggled (opened if closed, closed if open).
tagstring <optional>
A label that identifies the floating window type; for example, "shortcut", which indicates that the floating window contains the keyboard shortcuts legend. See the
tagparameter of floatingWindowEventListener.onClosefunction <optional>
A callback to execute when the floating window is closed.
- Since:
-
8.2.0
-
setContext(context)
-
Initializes the context of the floating window component. Dynamically adds a listener for the "floatingWindow" event based on the
typeparameter of the event (see floatingWindowEventListener).Parameters:
Name Type Description contextCIQ.UI.Context The chart user interface context.
- Since:
-
8.2.0
