Commit 2081d0e8 by Carsten Brandt

Merge pull request #6587 from creocoder/yii-grid-action-column-php-doc

\yii\grid\ActionColumn better phpDoc.
parents 0e7652b6 9ee36278
...@@ -21,7 +21,7 @@ use yii\helpers\Url; ...@@ -21,7 +21,7 @@ use yii\helpers\Url;
* 'columns' => [ * 'columns' => [
* // ... * // ...
* [ * [
* 'class' => 'yii\grid\ActionColumn', * 'class' => ActionColumn::className(),
* // you may configure additional properties here * // you may configure additional properties here
* ], * ],
* ] * ]
...@@ -68,7 +68,7 @@ class ActionColumn extends Column ...@@ -68,7 +68,7 @@ class ActionColumn extends Column
* ```php * ```php
* [ * [
* 'update' => function ($url, $model, $key) { * 'update' => function ($url, $model, $key) {
* return $model->status == 'editable' ? Html::a('Update', $url) : ''; * return $model->status === 'editable' ? Html::a('Update', $url) : '';
* }; * };
* ], * ],
* ``` * ```
...@@ -92,7 +92,7 @@ class ActionColumn extends Column ...@@ -92,7 +92,7 @@ class ActionColumn extends Column
} }
/** /**
* Initializes the default button rendering callbacks * Initializes the default button rendering callbacks.
*/ */
protected function initDefaultButtons() protected function initDefaultButtons()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment