Skip to content

Commit

Permalink
Grid max columns
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Jan 20, 2022
1 parent 667f8e2 commit d2a659f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/commands/BatchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ class BatchController extends Controller
*/
public $crudFixOutput = false;

/**
* @var int maximum number of columns to show in grid
*/
public $crudGridMaxColumns = 8;

/**
* @var string the namespace of the ActiveQuery class to be generated
*/
Expand Down Expand Up @@ -523,7 +528,6 @@ public function actionCruds()
'overwriteSearchModelClass' => $this->crudOverwriteSearchModelClass,
'overwriteRestControllerClass' => $this->crudOverwriteRestControllerClass,
'overwriteControllerClass' => $this->crudOverwriteControllerClass,
'template' => $this->template,
'modelClass' => $this->modelNamespace . '\\' . $name,
'searchModelClass' => $this->crudSearchModelNamespace . '\\' . $name . $this->crudSearchModelSuffix,
'controllerNs' => $this->crudControllerNamespace,
Expand All @@ -549,7 +553,8 @@ public function actionCruds()
'formLayout' => $this->crudFormLayout,
'generateAccessFilterMigrations' => $this->generateAccessFilterMigrations,
'actionButtonColumnPosition' => $this->crudActionButtonColumnPosition,
'disablePluralization' => $this->disablePluralization
'disablePluralization' => $this->disablePluralization,
'gridMaxColumns' => $this->crudGridMaxColumns
];
$route = 'gii/giiant-crud';
$app = \Yii::$app;
Expand Down

0 comments on commit d2a659f

Please sign in to comment.