Hi,
Is there a class or method to toggle elements based on if the app sidebar is minimized or not? Similar to how the logo works:
<img alt="Logo" src="~/assets/custom/logo/logo-full-horizontal.svg" class="h-25px app-sidebar-logo-default"/>
<img alt="Logo" src="~/assets/custom/logo/icon-transparent.svg" class="h-25px app-sidebar-logo-minimize"/>
So I want an element to show or hide based on if the app sidebar is minimized or not.
Thanks
Hi,
If you are referring to Metronic 8 Bootstrap Demo 1 there is data-kt-app-sidebar-minimize="on"
attribute available when the sidebar minimizes mode is on.
You can use a custom CSS to apply a style to your element.
<per>
<style>[data-kt-app-sidebar-minimize="on"] .my-button { display: none }</style>
</pre>
Regards,
Sean