Skip to content

Commit

Permalink
Adaptration to new export menu version
Browse files Browse the repository at this point in the history
  • Loading branch information
execut committed Jul 26, 2018
1 parent 0c1c6f0 commit 58b419a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions widgets/DynaGrid.php
Expand Up @@ -25,13 +25,23 @@ class DynaGrid extends KartikDynaGrid
public function init()
{
$columns = $this->filter->getGridColumns();
// foreach ($exportColumns as &$column) {
// unset($column['visible']);
// }

$fullExportMenu = ExportMenu::widget([
'dataProvider' => $this->dataProvider,
'columns' => $columns,
'showColumnSelector' => true,
'target' => ExportMenu::TARGET_BLANK,
'batchSize' => 1000,
'fontAwesome' => true,
'asDropdown' => false,
'dynagrid' => true,
'dynagridOptions' => [
'options' => ['id' => $this->options['id']],
// 'columns' => $columns,
],
'dropdownOptions' => [
'label' => '<i class="glyphicon glyphicon-export"></i> Full'
],
Expand Down

0 comments on commit 58b419a

Please sign in to comment.