core/moremenu

Moves wrapping navigation items into a more menu.

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

(require("core/moremenu"))(menu)

Source:

Initialise the more menus.

Parameters:
Name Type Description
menu HTMLElement

The navbar moremenu.

Members

(inner, constant) Selectors

Source:

Moremenu selectors.

Methods

(inner) autoCollapse(menu)

Source:

Auto Collapse navigation items that wrap into a dropdown menu.

Parameters:
Name Type Description
menu HTMLElement

The navbar container.

(inner) moveIntoMoreDropdown(menu, navNode, prepend)

Source:

Move a node into the "more" dropdown menu.

This method forces a given navigation node to be added and displayed within the "more" dropdown menu.

Parameters:
Name Type Default Description
menu HTMLElement

The navbar moremenu.

navNode HTMLElement

The navigation node.

prepend boolean false

Whether to prepend or append the node to the content in the more dropdown menu.

(inner) moveOutOfMoreDropdown(menu, navNode)

Source:

Move a node out of the "more" dropdown menu.

This method forces a given node from the "more" dropdown menu to be displayed in the main section of the menu.

Parameters:
Name Type Description
menu HTMLElement

The navbar moremenu.

navNode HTMLElement

The navigation node.