-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Batch action with all resources #4067
Copy link
Copy link
Closed
Description
Having a batch action with a form and a paginated index, I wonder if it's possible to trigger the batch action for all resources. I thought about the following approaches:
"Select all" checkbox
The select all checkbox only selects the current page in paginated indexes. I cannot remove pagination in my case.
Collection action besides batch action
I could use a collection action that does the same as the batch action. However, it seems like collection actions do not support batch action forms, do they? At least I couldn't find it in the docs.
Trigger batch action with custom action_item
A link to the batch action with keyword 'all' instead of the ID list would work, too. However, batch action URL generation seems to be complicated so I don't really know if that is possible and how it can be done.
Does somebody know which approach is the way to go?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels