src/app/core/ui/navigation/menu-item.ts
An alternative MenuItem details of an entry in the main navigation.
No results matching.
Properties |
| entityType |
entityType:
|
Type : string
|
|
Defined in src/app/core/ui/navigation/menu-item.ts:32
|
|
The entity type to whose list this item should link. |
| subMenu |
subMenu:
|
Type : (MenuItem | EntityMenuItem)[]
|
| Optional |
|
Defined in src/app/core/ui/navigation/menu-item.ts:34
|
| icon |
icon:
|
Type : string
|
| Optional |
|
Defined in src/app/core/ui/navigation/menu-item.ts:16
|
|
The icon to be displayed left of the label. |
| label |
label:
|
Type : string
|
|
Defined in src/app/core/ui/navigation/menu-item.ts:8
|
|
The text to be displayed in the menu. |
| link |
link:
|
Type : string
|
| Optional |
|
Defined in src/app/core/ui/navigation/menu-item.ts:20
|
|
The url fragment to which the item will route to (e.g. '/dashboard') |
| subtitle |
subtitle:
|
Type : string
|
| Optional |
|
Defined in src/app/core/ui/navigation/menu-item.ts:12
|
|
Optional subtitle or description |
export interface MenuItem {
/**
* The text to be displayed in the menu.
*/
label: string;
/**
* Optional subtitle or description
*/
subtitle?: string;
/**
* The icon to be displayed left of the label.
*/
icon?: string;
/**
* The url fragment to which the item will route to (e.g. '/dashboard')
*/
link?: string;
subMenu?: MenuItem[];
}
/**
* An alternative MenuItem details of an entry in the main navigation.
*/
export interface EntityMenuItem extends MenuItem {
/**
* The entity type to whose list this item should link.
*/
entityType: string;
subMenu?: (MenuItem | EntityMenuItem)[];
}
/**
* Object specifying overall navigation menu
* as stored in the config database
*/
export interface NavigationMenuConfig {
items: MenuItem[];
}