BC API DocsBC APIBC dataFunctions
- AppendButton(div: HTMLDivElement, menuitem: HTMLElement): void
Parameters
div: HTMLDivElement
menuitem: HTMLElement
Returns void
- Create(id: string, menuItems: readonly (string | Node | HTMLOptions<keyof HTMLElementTagNameMap>)[], options?: { direction: ltr | rtl }, htmlOptions?: Partial<Record<menu, Omit<HTMLOptions<any>, tag>>>): HTMLDivElement
Parameters
id: string
menuItems: readonly (string | Node | HTMLOptions<keyof HTMLElementTagNameMap>)[]
optionaloptions: { direction: ltr | rtl } = null
htmlOptions: Partial<Record<menu, Omit<HTMLOptions<any>, tag>>> = null
Returns HTMLDivElement
- PrependItem(div: HTMLDivElement, menuitem: HTMLElement): void
Parameters
div: HTMLDivElement
menuitem: HTMLElement
Returns void
- _KeyDown(...this: any, ev: KeyboardEvent): Promise<void>
Parameters
rest...this: any
ev: KeyboardEvent
Returns Promise<void>
Namespace for constructing menu bars