Skip to content
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

Offer a checkbox on the listpage for mass manipulation #70

Open
philiplb opened this issue Sep 19, 2016 · 1 comment
Open

Offer a checkbox on the listpage for mass manipulation #70

philiplb opened this issue Sep 19, 2016 · 1 comment
Milestone

Comments

@philiplb
Copy link
Owner

philiplb commented Sep 19, 2016

including a "select all" checkbox on top and bottom for the whole page.
The first use case would be to delete the selected items.

@philiplb philiplb added this to the 0.12.0 milestone Sep 19, 2016
@philiplb philiplb changed the title Offer a checkbox on the listpage for mass deletion Offer a checkbox on the listpage for mass actions Sep 19, 2016
@philiplb philiplb changed the title Offer a checkbox on the listpage for mass actions Offer a checkbox on the listpage for mass manipulation Sep 19, 2016
@philiplb
Copy link
Owner Author

philiplb commented Jun 1, 2017

From #84:

Hello, in my company I implemented an ad-hoc "Batch operations" feature, and I'm thinking about backporting it to crudlex

In my case we wanted to delete all selected entries, but that could be extended for example to have a CSV export

image

What could be a good api for this?

first draft in pseudo-code

$app['crud']->addBatchOperation(new MyCrudlexBatchOperation())
class MyCrudlexBatchOperation extends BatchOperation
   fun support(EntityDefinition definition) => true or false
   fun label => "CSV Export"
   fun handle(EntityDefinition definition, List<Entity> entities) ---> do the csv export

@philiplb philiplb modified the milestones: 0.13.0, 0.12.0 Jun 27, 2017
@philiplb philiplb modified the milestones: 0.13.0, 0.14.0 Jan 31, 2018
@philiplb philiplb modified the milestones: 0.14.0, 0.15.0 Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant