Hi,
I use a HTML Page, which is based on the “Page component expandable nav example” demo page. I know that you don’t include the necessary JS for the HTML components, and I figured out the mighty Burger-Menu-Collape toogle script myself :-). The Navbar itself also works like a charm.
My only problem now, is that that I want the navbar to collapse like in the React-Demos - when the window goes below 768px, I think. I know which classes to add/remove - already done for the burger menu - but I don’t know what is the best approach to do this. I of course can use the onresize of the window, but it doesn’t feel right.
Can someone point me to the right direction how to tackle this?
Thank you,
Florian