Interface Menu

Hierarchy

Index

Properties

Methods

Properties

public bubbleParent: boolean

public items: MenuItem[]

Methods

public add(options: any): MenuItem

Parameters

  • options: any

Returns

MenuItem

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public applyProperties(props: Dictionary)

Parameters

public clear()

public close()

public findItem(item: number): MenuItem

Parameters

  • item: number

Returns

MenuItem

public findItem(item: MenuItem): MenuItem

Parameters

Returns

MenuItem

public fireEvent(name: string, event: Dictionary)

Parameters

public getBubbleParent(): boolean

Returns

boolean

public getItem(index: number): MenuItem

Parameters

  • index: number

Returns

MenuItem

public getItems(): MenuItem[]

Returns

MenuItem[]

public hasVisibleItems(): boolean

Returns

boolean

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public removeGroup(groupId: number)

Parameters

  • groupId: number

public removeItem(itemId: number)

Parameters

  • itemId: number

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setGroupEnabled(groupId: number, enabled: boolean)

Parameters

  • groupId: number
  • enabled: boolean

public setGroupVisible(groupId: number, visible: boolean)

Parameters

  • groupId: number
  • visible: boolean

public size(): number

Returns

number