yiisoft/yii2 — pull request #6134 by leandrogehlen (2014-11-20 16:50:21+00:00)
Title: Added `yii\grid\DataColumn::items`

Allow rendering label of values.

Example:
```php
/**
* @property integer $id
* @property string $username
* @property string $password
* @property integer $status
*/
class User extends ActiveRecord {

const STATUS_INACTIVE = 0;
const STATUS_ACTIVE = 1;

}

// in view/user/index.php

$userProvider,
'columns' => [
'username',
[
'attribute' => 'status',
'items' => [
User::STATUS_ACTIVE => 'Active',
User::STATUS_INACTIVE => 'Inactive'
]
],
]
]); ?>
```