Open the navbar using click event + jQuery #445
Replies: 1 comment
-
Hello @sebastianjnuwu Try this (untested): document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.sidenav');
var instances = M.Sidenav.init(elems, {
// specify options here
});
instances[0].open();
});` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Oops, how can I open the navbar via the click event?
Beta Was this translation helpful? Give feedback.
All reactions