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

    接口 ICollectionTreePropertyItem

    A property item which supports creating nested folders of collection items

    interface ICollectionTreePropertyItem {
        canDragDropEntries: boolean;
        enable: boolean;
        folderCount: number;
        id: string;
        paneId: string;
        typeName: PropertyItemType;
        viewControlPane: IListViewControlPane;
        viewSortType: CollectionTreeSortType;
        visible: boolean;
        addFolder(options: ICollectionTreeFolderOptions): ICollectionTreeFolder;
        buildViewControl(
            options: ICollectionTreeViewControlPaneOptions,
        ): IListViewControlPane;
        forEachFolder(callback: (folder: ICollectionTreeFolder) => boolean): void;
        getFolder(id: string): ICollectionTreeFolder;
        removeFolder(id: string): boolean;
        setCanDragDropEntries(enabled: boolean): void;
        setViewSortType(sortType: CollectionTreeSortType): void;
    }

    层级 (查看层级一览)

    索引

    属性

    canDragDropEntries: boolean

    Drag and drop support for the entries

    enable: boolean

    If the item is enabled in the UI.

    folderCount: number

    Count of the child folders

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    The type name of the target property.

    viewControlPane: IListViewControlPane

    View control pane for the collection tree

    Sort type for the folders.

    visible: boolean

    If the item should be visible in the UI.

    方法

    • 参数

      • id: string

        Identifier of the folder

      返回 boolean

      Removes the folder with the id if it exists at the root

    • 参数

      • enabled: boolean

        Whether to enable drag and drop

      返回 void

      Toggles drag and drop support for the entries