Exporter MaxRows check early

Is it possible to make the MaxRows() check in the export action check sooner? I have a very large table. I'd like to let users export small batches from it. Let's say I have a million rows, but usually people only want to export 1000 rows. As I currently understand and am experiencing it, if you have the following:
ExportBulkAction::make()
->exporter(CustomerExporter::class)
->maxRows(2000),
ExportBulkAction::make()
->exporter(CustomerExporter::class)
->maxRows(2000),
Then if you have a million rows selected and you click the bulk exporter, it goes through the long process of loading up the pop-up window and letting you select the columns you want. Only after that does it finally tell you that you can't export that many rows. So is there a way currently to set it so it just quickly looks at the number of rows you have selected, compares it to the MaxRows() setting and then bails right away if they are attempting to export too many?
0 Replies
No replies yetBe the first to reply to this messageJoin