logo Multi Demo Bootstrap Admin Dashboard Theme

Menu

Overview

KTMenu is a Keen's custom plugin defined in [keen]/theme/[demo]/src/js/components/base/menu.js.

The Keen's Menu components allows to manage both horizontal and vertical multi level menus for both desktop and mobile modes.

Initialization

The initialization code can be found in this files;

[keen]/theme/[demo]/src/js/layout/base/aside-menu.js

[keen]/theme/[demo]/src/js/layout/base/header-menu.js

API Methods

Method Description
setDefaults(options)

Set default options

scrollUpdate()

Update scroll

scrollReInit()

Re-init scroll

scrollTop()

Scroll top

setActiveItem(item)

Set active menu item

getBreadcrumbs(item)

Set breadcrumb for menu item

getPageTitle(item)

Set page title for menu item

getSubmenuMode(el)

Get submenu mode

hideDropdown(item)

Hide dropdown @returns {Object}

hideDropdowns()

Hide dropdowns @returns {Object}

pauseDropdownHover(time)

Disable menu for given time @returns {Object}

resumeDropdownHover()

Disable menu for given time @returns {Object}

on(name, handler)

Register event