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

    接口 IListPanePropertyItem

    A property item which supports Sub Pane properties

    interface IListPanePropertyItem {
        enable: boolean;
        id: string;
        paneId: string;
        slotCount: number;
        typeName: PropertyItemType;
        viewSortType: ListPaneViewSortType;
        visible: boolean;
        addSlot(params: ListPaneSlotCreationProps): IListPaneSlot;
        getSlotById(id: string): IListPaneSlot;
        getSlotByIndex(index: number): IListPaneSlot;
        getViewFilter(): ListPaneViewFilter;
        hide(): void;
        removeSlot(id: string): void;
        selectSlot(id: string, deselectOtherSlots?: boolean): void;
        setViewFilter(filter: ListPaneViewFilter): void;
        setViewSortType(sortType: ListPaneViewSortType): void;
        show(): void;
        updateSlots(newSlots: ListPaneSlotCreationProps[]): void;
    }

    层级 (查看层级一览)

    索引

    属性

    enable: boolean

    If the item is enabled in the UI.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    slotCount: number

    Count of the slots managed by the list.

    The type name of the target property.

    viewSortType: ListPaneViewSortType

    Current sorting type for the pane slots

    visible: boolean

    If the item should be visible in the UI.

    方法

    • 参数

      • id: string

        Unique identifier of the slot.

      • 可选deselectOtherSlots: boolean

        Deselects already selected slots if defined.

      返回 void

      Selects slot by id.