Event
Download CSS Download JSEvent
The
event
parameter in the callback function returns to #menu
element.
event.detail
object can be used, if active DOM
is wanted.
new MetisMenu('#menu')
.on('show.metisMenu', function(event) {
console.log(event.detail.showElement);
})
.on('shown.metisMenu', function(event) {
console.log(event.detail.shownElement);
})
.on('hide.metisMenu', function(event) {
console.log(event.detail.hideElement);
})
.on('hidden.metisMenu', function(event) {
console.log(event.detail.hiddenElement);
});