-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the ability to hide the Delete
option in the Attachments
component
#1150
Added the ability to hide the Delete
option in the Attachments
component
#1150
Conversation
@AbhayVAshokan _a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anil-anand _a can you also add the prop and the description in Storybook? You can edit the below file for the same:
neeto-editor/stories/Walkthroughs/Attachments/constants.js
Lines 5 to 33 in 065c79e
export const ATTACHMENTS_TABLE_ROWS = [ | |
["attachments", "An array of the metadata of all the attachments."], | |
[ | |
"onChange", | |
"Callback function to be called when the attachments need to be updated as a result of CRUD operations.", | |
], | |
["endpoint", "Endpoint to upload attachments to."], | |
[ | |
"isIndependent", | |
"The default 'Add attachments' button can be hidden by providing a falsy value.", | |
], | |
["dragDropRef", "Ref to the drag and drop wrapper component."], | |
[ | |
"ref", | |
"Ref for the Attachments component. This ref needs to be used for accessing the handleUploadAttachment function.", | |
], | |
[ | |
"disabled", | |
"If true, the options to download, rename and delete the attachments will be disabled.", | |
], | |
[ | |
"config", | |
"Object to customize Attachments component, It has 3 properties: allowedFileTypes, maxNumberOfFiles and maxFileSize.", | |
], | |
[ | |
"showToastr", | |
"Boolean to show/hide toastr when an attachment is deleted/renamed, default value is true.", | |
], | |
]; |
Please merge it yourself once done.
…ion of the `allowDelete` prop
Delete
option in theAttachments
component #1149Description
Checklist
is required).
Reviewers