PopupMenu class

Index

Constructors

Public Properties

Protected Accessors

Public Methods

Constructors


constructor

⊕ new PopupMenu(options?: PopupMenuOptions): PopupMenu

Parameters:


Public Properties


isCursorInside

● isCursorInside: boolean = false


maxHeight

● maxHeight: number


maxItemWidth

● maxItemWidth: number


minItemWidth

● minItemWidth: number


style

● style: any


zIndex

● zIndex: string


Protected Accessors


cssPrefix

⇄ get cssPrefix(): string

Returns string


Public Methods


getItemFilterCallback

▸ getItemFilterCallback(): (item: MenuItem) => boolean

Returns (item: MenuItem) => boolean


getItems

▸ getItems(): MenuItem[]

Returns MenuItem[]


getRootLevel

▸ getRootLevel(): MenuLevel

Returns MenuLevel


hideMenu

▸ hideMenu(): void

Returns void


knockMenuStyle

▸ knockMenuStyle(menu: HTMLElement): void

Parameters:

  • menu: HTMLElement

Returns void


refreshCheckboxes

▸ refreshCheckboxes(): void

Returns void


refreshItems

▸ refreshItems(): void

Returns void


showMenu

▸ showMenu(options: PopupMenuOptions): void

Parameters:

Returns void


submitMenu

▸ submitMenu(menuItem: any,selectedItems: any): void

Parameters:

  • menuItem: any
  • selectedItems: any

Returns void