refactor GridView helpers

This commit is contained in:
2020-10-08 17:25:53 +07:00
parent 0273aa2179
commit 31675d0a28
12 changed files with 43 additions and 232 deletions

View File

@@ -42,7 +42,7 @@
'class' => 'table table-striped table-bordered table-hover',
'style' => 'background:#fff;min-width:700px;'
],
'rowOptions' => \app\helpers\DepartmentGrid::rows(),
'rowOptions' => \app\helpers\DepartmentGrid::rows("device"),
'columns' => [
[
'class' => 'yii\grid\SerialColumn',
@@ -54,7 +54,7 @@
'format' => 'raw',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
'value' => \app\helpers\DepartmentGrid::checkbox()
'value' => \app\helpers\DepartmentGrid::checkbox("device")
],
'name',
'ip_address',