Hello,
can i hide compenent in page like hide sidebar use sidebarlogo?
metronic 8 VUE.
Thank you
Hi,
If you wish to completely remove the sidebar from the layout for certain routes, you can switch to the header-only layout using the following code.
const store = useConfigStore();
onMounted(() => {
store.setLayoutConfigProperty("general.layout", "light-header");
LayoutService.init();
});
onUnmounted(() => {
store.setLayoutConfigProperty("general.layout", "dark-sidebar");
LayoutService.init();
});