Options
All
  • Public
  • Public/Protected
  • All
Menu

An abstract base class for menu component. A menu might consist of one or more child menu items. You can see that this class extends AbstractMenuItem allowing itself to be able to be added into another parent menu. It is not necessary that all child menu items must be the same type. For example, a single menu may consist of checkable menu items or sub menus etc. You can specify the type of each menu item by using the model's field MenuItemModel.type.

author

shiorin, tee4cute

see

AbstractMenuItem

see

MenuItemModel

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected beforeClickEvent

beforeClickEvent: EventEmitter<any>

Protected bypass

bypass: boolean

Protected clickEvent

clickEvent: EventEmitter<any>

Protected i18nKey

i18nKey: string

Protected i18nValue

i18nValue: any

Protected items

Protected menu

Protected menuItemHandler

menuItemHandler: Function

Protected model

model: MenuModel

Protected needFocusService

needFocusService: NeedFocusService

Protected options

options: any

Methods

Protected addMenuItem

  • Parameters

    Returns void

applyI18N

  • applyI18N(value: any): void

Abstract doRenderMenu

  • doRenderMenu(): void
  • Returns void

emitActionPerform

  • emitActionPerform($event?: any): void

Protected emitBeforeClickEvent

  • emitBeforeClickEvent($event?: any): void

Protected emitClickEvent

  • emitClickEvent($event?: any): void

getBeforeClickEvent

  • getBeforeClickEvent(): EventEmitter<any>

getClickEvent

  • getClickEvent(): EventEmitter<any>

getI18NKey

  • getI18NKey(): string

getI18NValue

  • getI18NValue(): any

getItems

getMenu

getMenuItemHandler

  • getMenuItemHandler(): Function
  • Returns Function

getModel

getOptions

  • getOptions(): any

isBypassKey

  • isBypassKey(): boolean

onClick

  • onClick($event: MouseEvent, fireEvent?: boolean): void
  • Parameters

    • $event: MouseEvent
    • Optional fireEvent: boolean

    Returns void

renderMenu

  • renderMenu(): void
  • Returns void

setBeforeClickEvent

  • setBeforeClickEvent(event: EventEmitter<any>): void

setBypassKey

  • setBypassKey(bypass: boolean): void

setClickEvent

  • setClickEvent(event: EventEmitter<any>): void

setI18NKey

  • setI18NKey(i18nKey: string): void

setMenu

  • Set a parent menu associated with this menu item.

    Parameters

    Returns void

setModel

setOptions

  • setOptions(options: any): void

Generated using TypeDoc