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

    接口 IListPanePropertyItemOptions

    Optional properties for List Pane property item

    interface IListPanePropertyItemOptions {
        categories?: Record<string, ListPaneCategory>;
        defaultSlots?: ListPaneSlotCreationProps[];
        enable?: boolean;
        height?: number | ListPaneHeight;
        noMargins?: boolean;
        onSlotClicked?: (slot: IListPaneSlot) => void;
        onSlotSelectionChange?: (slot: IListPaneSlot, state: boolean) => void;
        slotConfig: ListPaneSlotConfiguration;
        style?: PaneItemStyle;
        title?: LocalizedString;
        viewFilter?: ListPaneViewFilter;
        viewSortType?: string;
        visible?: boolean;
    }

    层级 (查看层级一览)

    索引
    categories?: Record<string, ListPaneCategory>

    Categories available to sort or group list pane slots.

    defaultSlots?: ListPaneSlotCreationProps[]

    Default slots to initialize the list with. If undefined, the list will be empty.

    enable?: boolean

    Initial enabled state of property item. If undefined, it will default to true.

    height?: number | ListPaneHeight

    Height behavior for the list. A number is treated as an expand maximum for compatibility.

    noMargins?: boolean

    Removes spacing around clickable list slots.

    onSlotClicked?: (slot: IListPaneSlot) => void

    This callback is fired whenever a clickable slot is pressed

    onSlotSelectionChange?: (slot: IListPaneSlot, state: boolean) => void

    This callback is fired whenever selected state of a slot is changed

    Slot configuration for the list. The slot entry layout must be predefined, and using an incorrect layout while creating slots will throw an error.

    Optional styling overrides for the item.

    Localized title of the property item.

    viewFilter?: ListPaneViewFilter

    Filter properties for viewing subset of slots.

    viewSortType?: string

    Built-in sort type or custom sort category ID to initially select.

    visible?: boolean

    Initial visibility state of property item. If undefined, it will default to true.