@byomakase/omakase-player
    Preparing search index...

    Interface OmakaseDropdownListApi

    Omakase dropdown component API

    interface OmakaseDropdownListApi {
        selectedAction$: Observable<OmakaseDropdownListItem>;
        selectedOption$: BehaviorSubject<OmakaseDropdownListItem | undefined>;
        get type(): OmakaseDropdownListType;
        set type(type: OmakaseDropdownListType): void;
        get width(): number;
        set width(width: number): void;
        setOptions(options: OmakaseDropdownListItem[]): void;
    }

    Implemented by

    Index

    Properties

    selectedAction$: Observable<OmakaseDropdownListItem>

    Observable that emits the dropdown list item whenever the action icon on the right side of the dropdown list item is clicked.

    selectedOption$: BehaviorSubject<OmakaseDropdownListItem | undefined>

    Observable that emits the currently selected dropdown list item whenever the selection changes. Emits undefined if no item is selected.

    Accessors

    • get type(): OmakaseDropdownListType

      Type of icons displayed next to each dropdown list item. Can be 'radio' for radio button icons, 'checkbox' for checkbox icons, or 'default' for no icons. Default value is 'default'.

      Returns OmakaseDropdownListType

    • set type(type: OmakaseDropdownListType): void

      Parameters

      • type: OmakaseDropdownListType

      Returns void

    Methods

    • Sets the dropdown list items and their configuration. The configuration includes the label to display for each item, the internal value of each item, and whether the item is active (selected) or not. The internal value can be used to determine which item is selected when subscribing to the selectedOption$ observable.

      Parameters

      Returns void