Routing
1. How to add page to verticle sidebar ?
// ----------------------------------------------------
// File: /components/lc/Full/vertical-sidebar/sidebarItem.ts
// ----------------------------------------------------
const sidebarItem: menu[] = [
{
header: 'dashboards',
id: 1,
children: [
{
title: 'Dashboard1',
icon: 'widget-add-line-duotone',
to: '/dashboards/dashboard1'
},
{
title: 'Dashboard2',
icon: 'chart-line-duotone',
to: '/dashboards/dashboard2'
},
{
title: 'Dashboard3',
icon: 'screencast-2-line-duotone',
to: '/dashboards/dashboard3'
},
]
}
]
2. How to add page to horizontal sidebar ?
// ------------------------------------------------------------
// File: /components/lc/Full/horizontal-sidebar/horizontalItems.ts
// ------------------------------------------------------------
const sidebarItem: menu[] = [
{
title: 'Dashboard',
icon: HomeIcon,
to: '#',
children: [
{
title: 'Modern',
icon: CircleIcon,
to: '/dashboards/modern'
}
]
}
]