@minecraft
    正在准备搜索索引...

    接口 DropdownItemData实验性

    Represents a single item in a dropdown component.

    interface DropdownItemData {
        description?:
            | string
            | ObservableString
            | ObservableUIRawMessage
            | UIRawMessage;
        label: string
        | ObservableString
        | ObservableUIRawMessage
        | UIRawMessage;
        value: number;
    }
    索引

    属性

    Optional descriptive text shown around the dropdown when this item is selected.

    The text displayed for this item in the dropdown list.

    value: number

    The numeric value associated with this dropdown item. This is the value the bound ObservableNumber will be set to when the player selects this item.