We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 302d7d7 commit 061ccd8Copy full SHA for 061ccd8
src/widgets/IndexPage.php
@@ -93,6 +93,7 @@ class IndexPage extends Widget
93
public $searchView = '_search';
94
95
public ?Closure $insteadPerPageRender = null;
96
+ public array|Closure $exportVariants = [];
97
98
/** {@inheritdoc} */
99
public function init()
@@ -372,7 +373,7 @@ public function canShowExport(): bool
372
373
public function renderExport()
374
{
375
if ($this->canShowExport()) {
- return IndexPageExportLinks::widget();
376
+ return IndexPageExportLinks::widget(['exportVariants' => $this->exportVariants]);
377
}
378
379
0 commit comments