Commit 98d4650f by Alexander Kochetov

\yii\grid\ActionColumn better phpDoc.

parent d05a373b
...@@ -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 === Post::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