Skip to content

Interface DirectoryListProps

Source: DirectoryList.tsx

Indexable

[key: string]: unknown

Properties

directory

directory: VirtualFolder

The directory to display.


showHidden?

optional showHidden: boolean

Whether to show hidden files and folders.


folderClassName?

optional folderClassName: string

className prop for folders.


fileClassName?

optional fileClassName: string

className prop for files.


className?

optional className: string

className prop for this component.


onContextMenuFile?

optional onContextMenuFile: FileEventHandler

Function that handles context menu interactions on files.


onContextMenuFolder?

optional onContextMenuFolder: FolderEventHandler

Function that handles context menu interactions on folders.


onOpenFile?

optional onOpenFile: FileEventHandler

Function that handles file opening events.


onOpenFolder?

optional onOpenFolder: FolderEventHandler

Function that handles folder opening events.


allowMultiSelect?

optional allowMultiSelect: boolean

Whether to allow multiple files and folders to be selected at the same time.


onSelectionChange()?

optional onSelectionChange: (params: OnSelectionChangeParams) => void

Function that handles selection changes.

Parameters

params

OnSelectionChangeParams

Returns

void

Built by Prozilla