-
-
Returns widget the element belonged to. The widget must be a non-static one.
Parameters:
Name |
Type |
Description |
element |
HTMLElement
|
|
- Source:
Returns:
-
Type
-
Kekule.Widget.BaseWidget
-
-
Returns current (topmost) modal widget.
- Source:
Returns:
-
Type
-
Kekule.Widget.BaseWidget
-
getTopmostLayer(doc) → {HTMLElement}
-
Get top most layer previous created in document.
Parameters:
Name |
Type |
Description |
doc |
HTMLDocument
|
|
- Source:
Returns:
-
Type
-
HTMLElement
-
-
Return if there is dialog widget in current document.
- Source:
-
-
Return if there is popup widget in current document.
- Source:
-
installWindowEventHandlers(win)
-
Install event handlers on window object.
Parameters:
Name |
Type |
Description |
win |
Window
|
|
- Source:
-
mapTouchToPointerEvent(e)
-
Convert a touch event to corresponding pointer event, useful for browsers that does not support pointer events.
Parameters:
Name |
Type |
Description |
e |
Object
|
|
- Source:
-
-
Notify that a widget on document has fired an event.
Parameters:
- Source:
-
-
Prepare before showing popup widget.
In this method, popupWidget element will be moved to top most layer and its position will
be recalculated.
Parameters:
- Source:
-
-
Register an auto-resize widget.
Parameters:
- Source:
-
-
Notify the manager that an dialog widget is shown.
Parameters:
Name |
Type |
Description |
widget |
Kekule.Widget.BaseWidget
|
//@param {HTMLElement} element Base element of widget. If not set, widget.getElement() will be used. |
- Source:
-
-
Notify the manager that an dialog widget is shown.
Parameters:
- Source:
-
-
Notify the manager that an popup widget is shown.
Parameters:
Name |
Type |
Description |
widget |
Kekule.Widget.BaseWidget
|
//@param {HTMLElement} element Base element of widget. If not set, widget.getElement() will be used. |
- Source:
-
uninstallWindowEventHandlers(win)
-
Uninstall event handlers on window object.
Parameters:
Name |
Type |
Description |
win |
Window
|
|
- Source:
-
-
Called after popup widget is hidden.
Parameters:
- Source:
-
-
Unregister an auto-resize widget.
Parameters:
- Source:
-
-
Notify the manager that an dialog widget is hidden.
Parameters:
Name |
Type |
Description |
widget |
Kekule.Widget.BaseWidget
|
//@param {HTMLElement} element Base element of widget. If not set, widget.getElement() will be used. |
- Source:
-
-
Notify the manager that an dialog widget is hidden.
Parameters:
- Source:
-
-
Notify the manager that an popup widget is hidden.
Parameters:
Name |
Type |
Description |
widget |
Kekule.Widget.BaseWidget
|
//@param {HTMLElement} element Base element of widget. If not set, widget.getElement() will be used. |
- Source: