From ad69fb9c7e0b49050ca6b03bc2a33dce997f28cc Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Thu, 10 Sep 2015 18:01:30 +0600 Subject: [PATCH] Closed #9635: Added default CSS class for `\yii\grid\ActionColumn` header --- framework/CHANGELOG.md | 1 + framework/grid/ActionColumn.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index e61ea3329a..3253c0bfab 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -15,6 +15,7 @@ Yii Framework 2 Change Log - Bug #9596: Fixed `\yii\web\UrlManager::createAbsoluteUrl(['site/index', '#' => 'testHash'])` losing hash (alchimik, samdark) - Chg #9369: `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured (creocoder) - Chg #9411: `DetailView` now automatically sets container tag ID in case it's not specified (samdark) +- Enh #9635: Added default CSS class for `\yii\grid\ActionColumn` header (arogachev, dynasource) 2.0.6 August 05, 2015 diff --git a/framework/grid/ActionColumn.php b/framework/grid/ActionColumn.php index e4265cab06..614f2b55aa 100644 --- a/framework/grid/ActionColumn.php +++ b/framework/grid/ActionColumn.php @@ -32,6 +32,10 @@ use yii\helpers\Url; */ class ActionColumn extends Column { + /** + * @inheritdoc + */ + public $headerOptions = ['class' => 'action-column']; /** * @var string the ID of the controller that should handle the actions specified here. * If not set, it will use the currently active controller. This property is mainly used by