Skip to content

Commit 061ccd8

Browse files
committed
HP-2352: new featrue export link with stock locations for model index
1 parent 302d7d7 commit 061ccd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/widgets/IndexPage.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class IndexPage extends Widget
9393
public $searchView = '_search';
9494

9595
public ?Closure $insteadPerPageRender = null;
96+
public array|Closure $exportVariants = [];
9697

9798
/** {@inheritdoc} */
9899
public function init()
@@ -372,7 +373,7 @@ public function canShowExport(): bool
372373
public function renderExport()
373374
{
374375
if ($this->canShowExport()) {
375-
return IndexPageExportLinks::widget();
376+
return IndexPageExportLinks::widget(['exportVariants' => $this->exportVariants]);
376377
}
377378
}
378379

0 commit comments

Comments
 (0)