Home Metronic Hire Us Buy Now
The World’s #1 Bootstrap 4 & 5 HTML, Angular 11, React, VueJS & Laravel
Admin Dashboard Theme

## Menu

### Overview

`KTMenu` is a Metronic's custom plugin defined in `[metronic]/theme/html/[demo]/src/js/components/base/menu.js`.

The Metronic'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;

`[metronic]/theme/html/[demo]/src/js/layout/base/aside-menu.js`

`[metronic]/theme/html/[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