Quickstart guide for metismenu
masterTo use metismenu in a standard web project, follow these steps:
- Include the StyleSheet: Add the metisMenu CSS via CDN.
- Include jQuery: metismenu is a jQuery plugin and requires jQuery to be loaded.
- Include metisMenu: Add the plugin's JavaScript via CDN.
- Prepare HTML: Add an
idattribute to your unordered list (<ul>). - Initialize: Call the plugin on your target element using jQuery.
Accessibility and Arrows
- Accessibility: Add
aria-expanded="true"oraria-expanded="false"to the<a>element to define the current state for screen readers. The plugin will toggle this automatically. - Arrows: Add the
has-arrowclass to the<a>element to display arrow icons.