Module: contextMenuPopover_js

Methods

(inner) addActionsPopoverFooter(target, popoverBody) → {void}

Populates the footer popover
Parameters:
Name Type Description
target EventTarget the triggering target
popoverBody Element the popover body
Source:
Returns:
Type
void

(inner) createPopoverBody(template) → {HTMLElement}

Creates the popover body
Parameters:
Name Type Description
template string tabs = create a popover body with two tabes, else create an empty body
Source:
Returns:
the popover body
Type
HTMLElement

(inner) createPopoverClickHandler(el) → {void}

Creates the click handler for the popover menu
Parameters:
Name Type Description
el HTMLElement container of the menu items
Source:
Returns:
Type
void

(inner) createPopoverInit(target, title, bodyTemplateopt) → {object}

Creates a new BSN popover
Parameters:
Name Type Attributes Description
target EventTarget triggering element
title string popover title
bodyTemplate string <optional>
the popover body
Source:
Returns:
BSN popover object
Type
object

(inner) createPopoverSimple(target, title, contentCallback) → {object}

Creates a simple popover
Parameters:
Name Type Description
target EventTarget triggering element
title string popover title
contentCallback function callback to create the popover content
Source:
Returns:
BSN popover object
Type
object

(inner) createPopoverTabs(target, tab1Callback, tab2Callback) → {object}

Creates a popover with two tabs
Parameters:
Name Type Description
target EventTarget triggering element
tab1Callback function callback to create the popover content for the first tab
tab2Callback function callback to create the popover content for the second tab
Source:
Returns:
BSN popover object
Type
object

(inner) hidePopover(thisElopt) → {void}

Hides all popovers
Parameters:
Name Type Attributes Description
thisEl EventTarget <optional>
triggering element
Source:
Returns:
Type
void

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

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