Options
All
  • Public
  • Public/Protected
  • All
Menu

A model class representing a menu item.

author

shiorin, tee4cute

see

AbstractMenuItem

Hierarchy

Implements

Index

Constructors

constructor

  • new MenuItemModel(menuType?: Type<any>, label?: string, enable?: boolean, actionPerformedHandler?: Function, autoResetFocus?: boolean): MenuItemModel
  • Parameters

    • Optional menuType: Type<any>
    • Optional label: string
    • Optional enable: boolean
    • Optional actionPerformedHandler: Function
    • Optional autoResetFocus: boolean

    Returns MenuItemModel

Properties

actionPerformedHandler

actionPerformedHandler: Function

A handler function will be called when this menu item is clicked.

autoResetFocus

autoResetFocus: boolean

A flag controlling the behavior of this menu item to auto reset focusing component when it is clicked or not.

enable

enable: boolean

A flag indicating that this menu item is currently enabled or not.

label

label: string

The label of this menu item.

Protected options

options: any

type

type: Type<any>

A type which is a sub-class of AbstractMenuItem of this menu item.

Methods

getOptions

  • getOptions(): any

setOptions

  • setOptions(options: any): void

Generated using TypeDoc