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
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
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
What could be a good api for this?
first draft in pseudo-code