Module: contextMenuOffcanvas_js

Methods

(inner) createContextMenuOffcanvas(target, contextMenuEl, type, contentCallback1, contentCallback2) → {void}

Creates the contextmenu
Parameters:
Name Type Description
target EventTarget triggering element
contextMenuEl HTMLElement contextmenu element
type string contextmenu type
contentCallback1 function first callback to create the content
contentCallback2 function second callback to create the content
Source:
Returns:
Type
void

(inner) createContextMenuOffcanvasInit(contextMenuEl, type) → {void}

Populates the offcanvas contextmenu
Parameters:
Name Type Description
contextMenuEl HTMLElement contextmenu element
type string type of contextmenu
Source:
Returns:
Type
void

(inner) initContextMenuOffcanvas() → {void}

Initializes the offcanvas contextmenu
Source:
Returns:
Type
void

(inner) showContextMenuOffcanvas(target, contextMenuType) → {void}

Shows the context menu offcanvas
Parameters:
Name Type Description
target HTMLElement calculated target
contextMenuType string type of the context menu
Source:
Returns:
Type
void