Skip to content
Mev-Rael edited this page Oct 23, 2016 · 1 revision

MenuUI

  • create(): HTMLElement

  • createItem(label:str, [value:str]): HTMLElement

  • createItems(items:Array|Object, callback): DocumentFragment

  • getItemByValue(Menu:HTMLElement, value:str): HTMLElement | false

  • getItems(Menu:HTMLElement): HTMLCollection

  • appendItem(Menu: HTMLElement, Item: HTMLElement): void

  • appendItems(Menu: HTMLElement, Item: HTMLElement): void

  • removeItems(Menu: HTMLElement): void

  • replaceItems(Menu: HTMLElement, Items: DocumentFragment): void

  • createAndReplaceItems(Menu: HTMLElement, items: Array|Object): void

  • createAndAppendItem(Menu: HTMLElement, itemLabel: str, [itemValue: str]): void

  • show(Menu: HTMLElement)

  • hide(Menu: HTMLElement)

  • isVisible(Menu: HTMLElement): bool

  • isHidden(Menu: HTMLElement): bool

  • isEmpty(Menu: HTMLElement): bool

  • hasItems(Menu: HTMLElement): bool

  • getItemsCount(Menu: HTMLElement): number

Clone this wiki locally