Enhance the <FileManager /> component to accept a customActions prop, enabling users to define custom file manager actions with configurable display and behavior options.
Description:
Allow developers to pass an array of custom action objects to the FileManager component. These actions should be configurable in terms of appearance (e.g., toolbar, context menu), functionality (e.g., onClick handler), applicability (e.g., single vs. multiple selection), and visibility.
This feature provides greater flexibility for integrating domain-specific actions directly into the file manager UI.
Proposed API by @Cokser:
<FileManager
customActions={[
{
key: string;
title?: string;
onClick?: Function;
showToolbar?: boolean;
showMenu?: boolean;
multiple?: boolean;
applyTo?: string[] | undefined; // TBD
icon?: ReactNode;
hidden?: boolean;
},
]}
/>
Enhance the
<FileManager />component to accept acustomActionsprop, enabling users to define custom file manager actions with configurable display and behavior options.Description:
Allow developers to pass an array of custom action objects to the
FileManagercomponent. These actions should be configurable in terms of appearance (e.g., toolbar, context menu), functionality (e.g.,onClickhandler), applicability (e.g., single vs. multiple selection), and visibility.This feature provides greater flexibility for integrating domain-specific actions directly into the file manager UI.
Proposed API by @Cokser: