To append a counter to the listitems that have a submenu,
use the counters
options and configuration.
<script>
document.addEventListener(
"DOMContentLoaded", () => {
new Mmenu( "#menu", {
counters: {
// counters options
}
}, {
counters: {
// counters configuration
}
});
}
);
</script>
<script>
document.addEventListener(
"DOMContentLoaded", () => {
}
);
</script>
Options for the "counters" add-on
Option | Datatype | Default value | Description |
counters | |||
---|---|---|---|
{ | |||
add | boolean |
false |
Whether or not to automatically append a counter to each menu item that has a submenu. |
} |
Configuration for the "counters" add-on
The "counters" add-on has no configuration options.
CSS variables for the "counters" add-on
The "counters" add-on has no CSS variables.
API methods for the "counters" add-on
The "counters" add-on has no API methods.