Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/hooks/useState.js

20 lines
432 B

import { ref } from 'vue'
const isSidebarOpen = ref(false)
const toggleSidebar = () => {
isSidebarOpen.value = !isSidebarOpen.value
}
const isSettingsPanelOpen = ref(false);
const isSearchPanelOpen = ref(false);
const isNotificationsPanelOpen = ref(false);
export default function useState() {
return {
isSidebarOpen,
toggleSidebar,
isSettingsPanelOpen,
isSearchPanelOpen,
isNotificationsPanelOpen,
}
}