<theoplayer-menu> - A menu that can be opened on top of the player.

The menu has a heading at the top, with a close button and a heading text.

Attribute

menu-close-on-input - Whether to automatically close the menu whenever one of its controls receives an input (e.g. when a radio button is clicked).

Attribute

menu-opened (readonly) - Whether the menu is currently open.

Slot

heading - A slot for the menu's heading.

Hierarchy (view full)

Constructors

  • Creates a menu.

    By default, the button has an unnamed <slot> for its contents, and a named "heading" <slot> for its heading text. Subclasses can override this by passing a different MenuOptions.template in the options, using menuTemplate to correctly style the custom template.

    Parameters

    • Optional options: MenuOptions

      The options for this menu.

    Returns Menu

Accessors

  • get closeOnInput(): boolean
  • Whether to automatically close the menu whenever one of its controls receives an input (e.g. when a radio button is clicked).

    Returns boolean

  • set closeOnInput(value): void
  • Parameters

    • value: boolean

    Returns void

Methods

  • Parameters

    • attrName: string
    • oldValue: any
    • newValue: any

    Returns void

Generated using TypeDoc