Interface LanguageMenuProps

interface LanguageMenuProps {
    activeVideoQuality?: VideoQuality;
    children?: ReactNode;
    deviceType?: DeviceType;
    error?: THEOplayerError;
    fullscreen?: boolean;
    heading?: ReactNode;
    playbackRate?: number;
    player: undefined | ChromelessPlayer;
    previewTime?: number;
    streamType?: StreamType;
    targetVideoQualities?: VideoQuality[];
    theoplayerUiObservedProperties?: (keyof StateReceiverPropertyMap)[];
    attributeChangedCallback?(attrName, oldValue, newValue): void;
    closeCurrentMenu?(): boolean;
    closeMenu?(menuId?): boolean;
    connectedCallback?(): void;
    disconnectedCallback?(): void;
    getMenuById?(menuId?): undefined | Menu | MenuGroup;
    hasCurrentMenu?(): boolean;
    isMenuOpen?(menuId?): boolean;
    openMenu?(menuId?, opener?): boolean;
}

Hierarchy (view full)

Properties

activeVideoQuality?: VideoQuality
children?: ReactNode

The menu's contents.

deviceType?: DeviceType
fullscreen?: boolean
heading?: ReactNode

A slot for the menu's heading.

playbackRate?: number
player: undefined | ChromelessPlayer
previewTime?: number
streamType?: StreamType
targetVideoQualities?: VideoQuality[]
theoplayerUiObservedProperties?: (keyof StateReceiverPropertyMap)[]

The names of the properties this element will receive.

Methods

  • Parameters

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

    Returns void

  • Close the current menu.

    Returns boolean

  • Closes the menu with the given ID.

    If no ID is given, then the entire menu group is closed.

    If the given menu has opened one or more submenus, then those are also closed. If the last open menu is closed, then the menu group also becomes closed.

    Parameters

    • Optional menuId: string

      The ID of the menu to close.

    Returns boolean

    True if the given menu was found and closed.

  • Returns void

  • Returns void

  • Get the menu with the given ID.

    Parameters

    • Optional menuId: string

      The ID of the menu. If unset, returns this menu group.

    Returns undefined | Menu | MenuGroup

  • Whether this menu group has a currently open menu.

    Returns boolean

  • Whether the menu with the given ID is currently open.

    Parameters

    • Optional menuId: string

      The ID of the menu.

    Returns boolean

  • Open the menu with the given ID.

    If no ID is given, the first menu in the group is opened.

    If there's already an open menu, then the new menu is opened as a "submenu". When it closed, the previous menu is opened.

    Parameters

    • Optional menuId: string

      The ID of the menu to open.

    • Optional opener: HTMLElement

      The control that opened the menu. When the menu is closed, focus is moved back to this control.

    Returns boolean

    True if the given menu was found.

Generated using TypeDoc