Interface DropdownEntry

DropdownEntry defines the structure needed for a UI dropdown entry to be used for UIDropdown or a section of a UIGroupDropdown.

interface DropdownEntry {
    activeLabel?: DropdownEntryLabel;
    disabled?: boolean;
    hidden?: boolean;
    id: string;
    label: DropdownEntryLabel;
    tooltip?: string;
}

Properties

activeLabel?: DropdownEntryLabel

activeLabel is displayed in the dropdown's button, when the entry is selected. In case activeLabel is not defined, it fall backs to label.

disabled?: boolean

disabled represents an optional parameter to disable an entry in the dropdown. It will then render as disabled and not be selectable. Currently available for UISuggestionDropdown

hidden?: boolean

hidden represents an optional parameter to hide an entry in the dropdown. It will then not render at all.

id: string

id declares an identificator for the dropdown entry.

label defines the entry's label to be used in the options dropdown. It can contain different data types, depending on what information we would like to show in the dropdown

tooltip?: string

tooltip defines the text a user sees on hovering an entry ideally disabled dropdown entry. Currently available for UISuggestionDropdown

Generated using TypeDoc