bitmovin-player-ui
    Preparing search index...

    Class FontSizeSelectBox

    A select box providing a selection of different font sizes.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    • get onDisabled(): Event<Component<Config>, NoArgs>

      Gets the event that is fired when the component is disabling. See the detailed explanation on event architecture on the #componentEvents events list.

      Returns Event<Component<Config>, NoArgs>

    • get onEnabled(): Event<Component<Config>, NoArgs>

      Gets the event that is fired when the component is enabling. See the detailed explanation on event architecture on the #componentEvents events list.

      Returns Event<Component<Config>, NoArgs>

    • get onHide(): Event<Component<Config>, NoArgs>

      Gets the event that is fired when the component is hiding. See the detailed explanation on event architecture on the #componentEvents events list.

      Returns Event<Component<Config>, NoArgs>

    • get onItemSelected(): Event<ListSelector<Config>, string>

      Gets the event that is fired when the selected item value changes.

      Use this to react to actual value changes (e.g. player state updates). This should not trigger new player calls to avoid feedback loops.

      Returns Event<ListSelector<Config>, string>

    • get onItemSelectionChanged(): Event<ListSelector<Config>, string>

      Gets the event that is fired when a selection change is requested.

      Use this to react to user interaction and call into the player or other components. It intentionally does not represent a confirmed value change.

      Returns Event<ListSelector<Config>, string>

    • get onShow(): Event<Component<Config>, NoArgs>

      Gets the event that is fired when the component is showing. See the detailed explanation on event architecture on the #componentEvents events list.

      Returns Event<Component<Config>, NoArgs>

    Methods

    • Adds an item to this selector by doing a sorted insert or by appending the element to the end of the list of items. If an item with the specified key already exists, it is replaced.

      Parameters

      • key: string

        the key of the item to add

      • label: LocalizableText

        the (human-readable) label of the item to add

      • sortedInsert: boolean = false

        whether the item should be added respecting the order of keys

      • ariaLabel: string = ''

        custom aria label for the listItem

      Returns void

    • Configures the component for the supplied Player and UIInstanceManager. This is the place where all the magic happens, where components typically subscribe and react to events (on their DOM element, the Player, or the UIInstanceManager), and basically everything that makes them interactive. This method is called only once, when the UIManager initializes the UI.

      Subclasses usually overwrite this method to add their own functionality.

      Parameters

      • player: PlayerAPI

        the player which this component controls

      • uimanager: UIInstanceManager

        the UIInstanceManager that manages this component

      Returns void

    • Dispatches a selection-changed event and optionally updates the selected item.

      This is the entry point for user-driven interactions. It exists separately from selectItem so we can distinguish intent (user interaction that should call into the e.g. player or other components) from actual value changes (state updates originating from the player).

      Parameters

      • key: string

        the key of the item to select

      • updateSelectedItem: boolean = true

        when true, updates the selected item

      Returns void

    • Initializes the component, e.g. by applying config settings. This method must not be called from outside the UI framework.

      This method is automatically called by the UIInstanceManager. If the component is an inner component of some component, and thus encapsulated abd managed internally and never directly exposed to the UIManager, this method must be called from the managing component's #initialize method.

      Returns void

    • Releases all resources and dependencies that the component holds. Player, DOM, and UIManager events are automatically removed during release and do not explicitly need to be removed here. This method is called by the UIManager when it releases the UI.

      Subclasses that need to release resources should override this method and call super.release().

      Returns void

    • Selects an item from the items in this selector.

      This represents an actual value change in the UI state. It should be used when the selection is updated based on the current player/component state (e.g. from a player event), not as a user-intent signal.

      Parameters

      • key: string

        the key of the item to select

      Returns boolean

      true is the selection was successful, false if the selected item is not part of the selector