Interface UIRelatedContent

The related content UI API which can be used to toggle UI components.


- Available since v2.14.2.

interface UIRelatedContent {
    showing: boolean;
    sources: RelatedContentSource[];
    addEventListener<TType>(type: TType | readonly TType[], listener: EventListener<UIRelatedContentEventMap[TType]>): void;
    hide(): void;
    removeEventListener<TType>(type: TType | readonly TType[], listener: EventListener<UIRelatedContentEventMap[TType]>): void;
    show(): void;
}

Hierarchy (view full)

Properties

showing: boolean

Whether the related content menu is showing.

List of related content sources.

Methods

  • Hides the related content menu.

    Returns void

  • Show the related content menu.

    Returns void