Skip to content

[FEAT] Custom Actions for Toolbar and Context-Menu #189

@Saifullah-dev

Description

@Saifullah-dev

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;
    },
  ]}
/>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions