Metronic side menu staying open through postback
I've set the Metronic side menu to start in a collapsed position. When the user opens the menu and docks it to the browser, I would like the menu to stay open through postbacks.
How can I accomplish this>
(also - don't know if this is important, but I'm using this with .NET 5 Razor MVC)
I'm having trouble following the bouncing ball through the code.
Seems like you're telling me to examine other pages to find out what changes when the side menu is expanded...
I think this works:
You can also use the KTToggle API as shown below:
var toggleEl = document.querySelector('#kt_aside_toggle');
THAT's EXACTLY what I was looking for!! Works much better than trying to force a click event!
Glad to point you out
Your Support Matters!
In a similar way, can you tell me the script to call to toggle dark mode vs light mode?
The dark mode switch support will be released in the next update soon.
Please wait for the next update to use Metronic with latest Bootstrap 5.2 and improved dark mode with light/dark mode change without page reload.
Can you tell me when the next update will be released with the improved "Dark Mode" toggle? We are REALLY interested in using Dark Mode...
Also - the concern I have here is that I am using your templates, but customizing them heavily. I need to not lose my customizations, so I'll need to know how to "surgically" add the new dark mode functionality to my current code base....
The dark mode was released 2 days aga with Metronic v8.1 update.