src/modules/app-menu/components/app-menu-entry.intf.ts
StarkMenuEntry interface
Properties |
|
icon |
icon:
|
Type : string
|
Optional |
Icon to display next to the menu group/entry label. |
id |
id:
|
Type : string
|
Id of the container of the menu group/entry |
isEnabled |
isEnabled:
|
Type : boolean
|
Whether the menu group/entry should be enabled for user interaction or not. |
isVisible |
isVisible:
|
Type : boolean
|
Whether the menu group/entry should be visible or not. |
label |
label:
|
Type : string
|
Text to be displayed as the label in the header of the menu group/entry (dynamically translated via the Translate service if the provided text is defined in the translation keys). |
targetState |
targetState:
|
Type : string
|
Optional |
Name of the Router state that will be navigated to when the header of the menu group/entry is clicked. |
targetStateParams |
targetStateParams:
|
Type : literal type
|
Optional |
Params object to be passed to the Router state defined as targetState. |
export interface StarkMenuEntry {
/**
* Id of the container of the menu group/entry
*/
id: string;
/**
* Icon to display next to the menu group/entry label.
*/
icon?: string;
/**
* Text to be displayed as the label in the header of the menu group/entry
* (dynamically translated via the Translate service if the provided text is defined in the translation keys).
*/
label: string;
/**
* Whether the menu group/entry should be visible or not.
*/
isVisible: boolean;
/**
* Whether the menu group/entry should be enabled for user interaction or not.
*/
isEnabled: boolean;
/**
* Name of the Router state that will be navigated to when the header of the menu group/entry is clicked.
*/
targetState?: string;
/**
* Params object to be passed to the Router state defined as targetState.
*/
targetStateParams?: { [param: string]: any };
}