Skip to content

Commit

Permalink
feat: SimpleDynaGrid widget
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss committed Sep 7, 2018
1 parent f5898a9 commit 00871f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions generators/crud/default/views/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@
<?php endif; ?>
];

$simpleDynaGrid = new SimpleDynaGrid([
'dynaGridId' => 'dynagrid-<?=$generator->getControllerID()?>-index',
'columns' => $columns,
echo SimpleDynaGrid::widget([
'dataProvider' => $dataProvider,
'columns' => $columns,
<?php if($hasToolbar): ?>
'extraToolbar' => [
[
Expand All @@ -72,4 +71,3 @@
]
<?php endif; ?>
]);
$simpleDynaGrid->renderDynaGrid();
6 changes: 2 additions & 4 deletions generators/dynagrid/default/views/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@
<?php endif; ?>
];

$simpleDynaGrid = new SimpleDynaGrid([
'dynaGridId' => 'dynagrid-<?=$generator->getControllerID()?>-<?=$generator->actionIndex?>',
'columns' => $columns,
echo SimpleDynaGrid::widget([
'dataProvider' => $dataProvider,
'columns' => $columns,
<?php if($hasToolbarAction): ?>
<?php
$toolbarActionsStrArr = [];
Expand All @@ -83,4 +82,3 @@
]
<?php endif; ?>
]);
$simpleDynaGrid->renderDynaGrid();

0 comments on commit 00871f3

Please sign in to comment.