Tree
File Tree from the File tree package.
Loading FileTree…
Source code
Waiting for the preview before loading source files · 2 of 2
Properties
Public properties derived from the component’s TypeScript signature.
| Property | Type | Default |
|---|---|---|
nodeRequired | FileTreeNode | — |
selectedPathRequired | string | null | — |
densityOptional | "default" | "compact" | "default" |
statusPlacementOptional | "before-actions" | "after-actions" | "before-actions" |
mappedPathsOptional | ReadonlySet<string> | — |
nameOverridesOptional | Readonly<Record<string, FileTreeNameOverride>> | — |
expandedPathsOptional | ReadonlySet<string> | — |
defaultExpandedPathsOptional | ReadonlySet<string> | — |
onExpandedPathsChangeOptional | ((paths: ReadonlySet<string>) => void) | — |
onSelectRequired | (path: string) => void | — |
onOpenOptional | ((path: string) => void) | — |
getDescriptionOptional | ((node: FileTreeNode) => string | undefined) | — |
getStatusOptional | ((node: FileTreeNode) => FileTreeStatus | undefined) | — |
getTrailingOptional | ((node: FileTreeNode) => StrictRenderable) | — |
getActionsOptional | ((node: FileTreeNode) => readonly FileTreeAction[]) | — |
onActionOptional | ((action: FileTreeAction, node: FileTreeNode) => void) | — |
onContextMenuOptional | ((node: FileTreeNode, position: Readonly<FileTreeMenuPosition>) => void) | — |
onMoveOptional | ((move: FileTreeMove) => void) | — |
canDropOptional | ((move: FileTreeMove) => boolean) | — |
emptyLabelOptional | string | "No files" |
customizeOptional | UiCustomization | — |