src/app/components/toolbar/nav-items.ts
An interface representing the details of navigation items
Properties |
children |
children:
|
Type : NavItems[]
|
Optional |
Children of the menu item |
disabled |
disabled:
|
Type : boolean
|
Optional |
Flag to enable/disable menu item |
divider |
divider:
|
Type : boolean
|
Optional |
Flag to view/hide the divider between menu items |
fragment |
fragment:
|
Type : string
|
Optional |
ID of an element for the page to be navigated when clicked on the menu item |
id |
id:
|
Type : string
|
Optional |
ID of an element for the page to be navigated when clicked on the menu item |
menuName |
menuName:
|
Type : string
|
Label for the menu name |
route |
route:
|
Type : string
|
Optional |
Route of the page to be redirected to when clicked on menu item |
url |
url:
|
Type : string
|
Optional |
URL of the page to redirect to when clicked on menu item |
export interface NavItems {
/** Label for the menu name */
menuName: string;
/** Flag to enable/disable menu item */
disabled?: boolean;
/** Route of the page to be redirected to when clicked on menu item */
route?: string;
/** Children of the menu item */
children?: NavItems[];
/** Flag to view/hide the divider between menu items */
divider?: boolean;
/** URL of the page to redirect to when clicked on menu item */
url?: string;
/** ID of an element for the page to be navigated when clicked on the menu item */
id?: string;
/** ID of an element for the page to be navigated when clicked on the menu item */
fragment?: string;
}