Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SidebarMenuItemInterface

Item of the side menu

Hierarchy

  • SidebarMenuItemInterface

Index

Properties

Optional getClass

getClass: () => string

Class applied to the menu item element in the DOM

Type declaration

    • (): string
    • Returns string

icon

Info of an icon displayed in the menu

isFullscreen

isFullscreen: boolean

Whether or not the menu item should be fullscreen

Optional isPreviewIconVisible

isPreviewIconVisible: () => boolean

Condition of the preview icon's visibility

Type declaration

    • (): boolean
    • Returns boolean

isVisible

isVisible: () => boolean

Condition of the item's visibility

Type declaration

    • (): boolean
    • Returns boolean

items

Child items

Optional onClick

onClick: () => void

Action performed when clicking the menu item

Type declaration

    • (): void
    • Returns void

Optional onExit

onExit: () => boolean

Action performed when leaving the menu item (going back, switching items, closing menu). Returning true blocks an actual side menu action.

Type declaration

    • (): boolean
    • Returns boolean

Optional order

order: number

Order of the item inside the side menu. A lower value goes to the top.

Optional template

template: string

Path to the menu template (absolute or relative)

title

title: string

Title displayed in the menu

Generated using TypeDoc