colymba / GridFieldBulkEditingTools

SilverStripe GridField Components set for bulk upload and bulk record edit, unlink & delete :package::boom:
BSD 3-Clause "New" or "Revised" License
88 stars 81 forks source link

Auto-detect base actions #100

Open jonom opened 9 years ago

jonom commented 9 years ago

I don't know if this is possible but it would be cool if the basic bulk edit actions (unlink,edit,delete) were automatically limited to match what's enabled on the rows.

I.e. if 'unlink' isn't shown on the gridfield then it's not shown in the bulk edit dropdown either.

colymba commented 9 years ago

This sounds like a good idea.

But what if someone decides to remove the buttons to only use the dropdown bulk edit? Might have to have this as a config option for the component rather than the default?...

jonom commented 9 years ago

Yes good point. A config option sounds good then - perhaps a global setting that can be overridden for individual instances?

colymba commented 6 years ago

This hasn't got much love in years, but now with all the new bulkactions, this could be revived...

Thinking a good option might be too rely on testing the various canXXX actions on the data object...