core/drawer

Controls the drawer.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) getDrawerRoot(contentRoot) → {*|jQuery}

Source:

Find the root element of the drawer based on the using the drawer content root's ID.

Parameters:
Name Type Description
contentRoot Object

The drawer content's root element.

Returns:
Type
* | jQuery

(inner) hide(root)

Source:

Hide the drawer.

Parameters:
Name Type Description
root Object

The drawer container.

(inner) isVisible(root) → {boolean}

Source:

Check if the drawer is visible.

Parameters:
Name Type Description
root Object

The drawer container.

Returns:
Type
boolean

(inner) registerToggles(root, toggleElements)

Source:

Add event listeners to toggle the drawer.

Parameters:
Name Type Description
root Object

The drawer container.

toggleElements Object

The toggle elements.

(inner) show(root)

Source:

Show the drawer.

Parameters:
Name Type Description
root Object

The drawer container.

(inner) toggle(root)

Source:

Toggle the drawer visibility.

Parameters:
Name Type Description
root Object

The drawer container.