Metronic Documentation | Keenthemes
logo
The World’s #1 Bootstrap 5 HTML, VueJS, React, Angular & Laravel
Admin Dashboard Ecosystem

This is Metronic 7 documentation!

Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel foundation with a solid light and dark mode design system, extensive utility classes and custom made in-house components.
View Metronic 8 documentation

To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/

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

Think About The Future, Stay Connected With Us
The More We Learn, The More We Are Able To Innovate & To Develop