Interface: ICollectionTreePropertyItem experimental
Beta
A property item which supports creating nested folders of collection items
Extends
Properties
canDragDropEntries
readonlycanDragDropEntries:boolean
Beta
Remarks
Drag and drop support for the entries
enable
enable:
boolean
Beta
Remarks
If the item is enabled in the UI.
Inherited from
folderCount
readonlyfolderCount:number
Beta
Remarks
Count of the child folders
id
readonlyid:string
Beta
Remarks
Unique ID for the property item.
Inherited from
paneId
readonlypaneId:string
Beta
Remarks
The parent pane id.
Inherited from
typeName
readonlytypeName:PropertyItemType
Beta
Remarks
The type name of the target property.
Inherited from
viewControlPane
readonlyviewControlPane:IListViewControlPane|undefined
Beta
Remarks
View control pane for the collection tree
viewSortType
readonlyviewSortType:CollectionTreeSortType
Beta
Remarks
Sort type for the folders.
visible
visible:
boolean
Beta
Remarks
If the item should be visible in the UI.
Inherited from
Methods
addFolder()
addFolder(
options):ICollectionTreeFolder
Beta
Parameters
options
Options to create a folder
Returns
Remarks
Creates a new folder at the root of the collection
buildViewControl()
buildViewControl(
options):IListViewControlPane
Beta
Parameters
options
ICollectionTreeViewControlPaneOptions
Returns
Remarks
Creates a pane that displays view and filtering configurations for the collection tree if the parent container supports it.
forEachFolder()
forEachFolder(
callback):void
Beta
Parameters
callback
(folder) => boolean
Returning false will stop the iteration
Returns
void
Remarks
Iterates over the first layer of folders
getFolder()
getFolder(
id):ICollectionTreeFolder|undefined
Beta
Parameters
id
string
Identifier of the folder
Returns
ICollectionTreeFolder | undefined
Remarks
Find the folder with the id if it exists at the root
removeFolder()
removeFolder(
id):boolean
Beta
Parameters
id
string
Identifier of the folder
Returns
boolean
Remarks
Removes the folder with the id if it exists at the root
setCanDragDropEntries()
setCanDragDropEntries(
enabled):void
Beta
Parameters
enabled
boolean
Whether to enable drag and drop
Returns
void
Remarks
Toggles drag and drop support for the entries
setViewSortType()
setViewSortType(
sortType):void
Beta
Parameters
sortType
CollectionTreeSortType | undefined
New sort type
Returns
void
Remarks
Updates the folder sort type for the whole view
