You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your excellent work on this library! It has been incredibly helpful in our project.
Feature Request
I’d like to request a feature that allows customization of the action menu to enable or disable specific controls like Copy, Cut, Download, etc. This would improve the flexibility of the library for various use cases.
Use Cases
Custom User Permissions: Restrict access to certain controls (e.g., disable "Download" for users without download permissions).
Simplified UI: Hide unnecessary actions for a cleaner user experience.
Dynamic Behavior: Adjust the action menu based on specific file/folder states or application logic.
Suggested Implementation
Configuration Options:
Add a prop or configuration object to define which controls are visible or hidden.
Example:
All actions enabled by default for backward compatibility.
Current Workaround
I had to implement this programmatically by detecting menu items and manipulating their visibility in the DOM. While this works, it would be much cleaner and maintainable if the library supported it natively.
Thank you for considering this request. I’d be happy to provide further details or discuss possible approaches!
Best regards,
Felipe Norato
The text was updated successfully, but these errors were encountered:
@norato Thank your for suggesting this feature. It would indeed be a great addition to React File Manager and I can see how useful it would be for applications with role based access/permissions and other use cases.
I'm considering this feature for the next release 🙌
Saifullah-dev
changed the title
Feature Request: Configurable Action Menu to Enable/Disable Controls
[FEAT] Configurable Action Menu to Enable/Disable Controls
Jan 15, 2025
Hello,
Thank you for your excellent work on this library! It has been incredibly helpful in our project.
Feature Request
I’d like to request a feature that allows customization of the action menu to enable or disable specific controls like Copy, Cut, Download, etc. This would improve the flexibility of the library for various use cases.
Use Cases
Suggested Implementation
Add a prop or configuration object to define which controls are visible or hidden.
Example:
Default Values
All actions enabled by default for backward compatibility.
Current Workaround
I had to implement this programmatically by detecting menu items and manipulating their visibility in the DOM. While this works, it would be much cleaner and maintainable if the library supported it natively.
Thank you for considering this request. I’d be happy to provide further details or discuss possible approaches!
Best regards,
Felipe Norato
The text was updated successfully, but these errors were encountered: