@theoplayer/react-ui
    Preparing search index...

    Interface PlaybackRateMenuProps

    interface PlaybackRateMenuProps {
        children?: ReactNode;
        closeMenu?: () => void;
        closeOnInput?: boolean;
        connectedCallback?: () => void;
        heading?: ReactNode;
        openMenu?: () => void;
    }

    Hierarchy (View Summary)

    Index

    Other

    children?: ReactNode

    The menu's contents.

    closeMenu?: () => void

    Type Declaration

      • (): void
      • Close the menu.

        Returns void

    closeOnInput?: boolean

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

    heading?: ReactNode

    A slot for the menu's heading.

    openMenu?: () => void

    Type Declaration

      • (): void
      • Open the menu.

        Returns void

    lifecycle

    connectedCallback?: () => void

    Type Declaration

      • (): void
      • Invoked when the component is added to the document's DOM.

        In connectedCallback() you should setup tasks that should only occur when the element is connected to the document. The most common of these is adding event listeners to nodes external to the element, like a keydown event handler added to the window.

        connectedCallback() {
        super.connectedCallback();
        addEventListener('keydown', this._handleKeydown);
        }

        Typically, anything done in connectedCallback() should be undone when the element is disconnected, in disconnectedCallback().

        Returns void