Closed 32x0lf closed 1 year ago
Hi,
I will be implementing a dynamic sidebar menu. What is the json format for the side bar nav?is it the same as the INavdata like this?
{ name: 'Dashboard', url: '/dashboard', iconComponent: { name: 'cil-speedometer' }, badge: { color: 'info', text: 'NEW' } }, { title: true, name: 'Theme' }, { name: 'Colors', url: '/theme/colors', iconComponent: { name: 'cil-drop' } }, { name: 'Typography', url: '/theme/typography', linkProps: { fragment: 'headings' }, iconComponent: { name: 'cil-pencil' } }, { name: 'Components', title: true }, { name: 'Base', url: '/base', iconComponent: { name: 'cil-puzzle' }, children: [ { name: 'Accordion', url: '/base/accordion' }, { name: 'Breadcrumbs', url: '/base/breadcrumbs' }, { name: 'Cards', url: '/base/cards' }, { name: 'Carousel', url: '/base/carousel' }, { name: 'Collapse', url: '/base/collapse' }, { name: 'List Group', url: '/base/list-group' }, { name: 'Navs & Tabs', url: '/base/navs' }, { name: 'Pagination', url: '/base/pagination' }, { name: 'Placeholder', url: '/base/placeholder' }, { name: 'Popovers', url: '/base/popovers' }, { name: 'Progress', url: '/base/progress' }, { name: 'Spinners', url: '/base/spinners' }, { name: 'Tables', url: '/base/tables' }, { name: 'Tabs', url: '/base/tabs' }, { name: 'Tooltips', url: '/base/tooltips' } ] }
@32x0lf see the docs:
https://coreui.io/angular/docs/components/sidebar#inavdata
Hi,
I will be implementing a dynamic sidebar menu. What is the json format for the side bar nav?is it the same as the INavdata like this?