Hiyve Components - v1.0.0
    Preparing search index...

    Interface FileManagerToolbarProps

    Props for the FileManagerToolbar component.

    interface FileManagerToolbarProps {
        colors?: Partial<FileManagerColors>;
        commentsPanelOpen?: boolean;
        customAction?: CustomToolbarAction | null;
        customFilters?: CustomToolbarFilter[];
        forceFlatView?: boolean;
        icons?: Partial<FileManagerIcons>;
        isDownloading?: boolean;
        isFolderEmpty?: (path: string) => boolean;
        isRefreshing?: boolean;
        isRoomOwner?: boolean;
        isUploading?: boolean;
        labels?: Partial<FileManagerLabels>;
        onCreateFolder?: () => void;
        onDelete?: () => void;
        onDeleteFolder?: () => void;
        onDownload?: () => void;
        onFetchFileTypes?: () => Promise<void>;
        onFileTypeChange?: (fileType: string) => void;
        onRefresh?: () => void;
        onRename?: () => void;
        onSearchChange?: (query: string) => void;
        onShare?: () => void;
        onSortChange?: (column: FileListColumn) => void;
        onToggleComments?: () => void;
        onToggleFlatView?: () => void;
        onToggleViewMode?: () => void;
        onUpload?: (event: ChangeEvent<HTMLInputElement>) => void;
        searchQuery?: string;
        selectedFiles?: FileEntry[];
        selectedFileType?: string | null;
        selectedItem?: FileEntry | FolderEntry | null;
        show?: boolean;
        showFlatView?: boolean;
        sortColumn?: FileListColumn | null;
        sortDirection?: SortDirection;
        styles?: Partial<FileManagerStyles>;
        sx?: SxProps<Theme>;
        userId?: string;
        usersFileTypes?: string[];
        viewMode?: FileManagerViewMode;
    }
    Index

    Properties

    colors?: Partial<FileManagerColors>

    Custom colors

    commentsPanelOpen?: boolean

    Whether the comments panel is currently open

    customAction?: CustomToolbarAction | null

    Custom action button configuration

    customFilters?: CustomToolbarFilter[]

    Custom filter dropdowns rendered in the toolbar

    forceFlatView?: boolean

    Force flat view mode (hides folder navigation buttons)

    icons?: Partial<FileManagerIcons>

    Custom icons

    isDownloading?: boolean

    Whether a download operation is in progress

    isFolderEmpty?: (path: string) => boolean

    Check if a folder is empty (for delete validation)

    isRefreshing?: boolean

    Whether a refresh operation is in progress

    isRoomOwner?: boolean

    Whether current user is room owner

    isUploading?: boolean

    Whether an upload operation is in progress

    labels?: Partial<FileManagerLabels>

    Custom labels

    onCreateFolder?: () => void

    Open create folder dialog

    onDelete?: () => void

    Handle file delete

    onDeleteFolder?: () => void

    Handle folder delete

    onDownload?: () => void

    Handle file download

    onFetchFileTypes?: () => Promise<void>

    Fetch available file types for filter dropdown

    onFileTypeChange?: (fileType: string) => void

    Handle file type filter change

    onRefresh?: () => void

    Refresh file list

    onRename?: () => void

    Open rename dialog

    onSearchChange?: (query: string) => void

    Search query change handler

    onShare?: () => void

    Open share dialog

    onSortChange?: (column: FileListColumn) => void

    Sort change handler

    onToggleComments?: () => void

    Toggle comments panel visibility

    onToggleFlatView?: () => void

    Toggle flat/folder view

    onToggleViewMode?: () => void

    Toggle between table and card view

    onUpload?: (event: ChangeEvent<HTMLInputElement>) => void

    Handle file upload

    searchQuery?: string

    Current search query

    selectedFiles?: FileEntry[]

    Array of selected files for bulk operations

    selectedFileType?: string | null

    Currently selected file type filter

    selectedItem?: FileEntry | FolderEntry | null

    Currently selected single item

    show?: boolean

    Whether toolbar should be visible

    showFlatView?: boolean

    Whether flat view is currently shown

    sortColumn?: FileListColumn | null

    Current sort column

    sortDirection?: SortDirection

    Current sort direction

    styles?: Partial<FileManagerStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx styling prop

    userId?: string

    Current user's ID (for permission checks)

    usersFileTypes?: string[]

    Available file types for filtering

    Current view mode