File

src/modules/app-menu/components/app-menu-entry.intf.ts

Description

StarkMenuEntry interface

Index

Properties

Properties

icon
icon: string
Type : string
Optional

Icon to display next to the menu group/entry label.

id
id: string
Type : string

Id of the container of the menu group/entry

isEnabled
isEnabled: boolean
Type : boolean

Whether the menu group/entry should be enabled for user interaction or not.

isVisible
isVisible: boolean
Type : boolean

Whether the menu group/entry should be visible or not.

label
label: string
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: string
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: literal type
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 };
}

results matching ""

    No results matching ""