File

src/app/components/toolbar/nav-items.ts

Description

An interface representing the details of navigation items

Index

Properties

Properties

children
children: NavItems[]
Type : NavItems[]
Optional

Children of the menu item

disabled
disabled: boolean
Type : boolean
Optional

Flag to enable/disable menu item

divider
divider: boolean
Type : boolean
Optional

Flag to view/hide the divider between menu items

fragment
fragment: string
Type : string
Optional

ID of an element for the page to be navigated when clicked on the menu item

id
id: string
Type : string
Optional

ID of an element for the page to be navigated when clicked on the menu item

menuName
menuName: string
Type : string

Label for the menu name

route
route: string
Type : string
Optional

Route of the page to be redirected to when clicked on menu item

url
url: string
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;
}

results matching ""

    No results matching ""