-
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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;
},
]}
/>tdanh2k and Cokser
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
Todo