mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-18 07:20:18 +08:00
Merge pull request #2686 from sanchezby/master
Corrected sample in data-grid.md
This commit is contained in:
@@ -50,12 +50,10 @@ echo GridView::widget([
|
||||
'username',
|
||||
// More complex one.
|
||||
[
|
||||
'class' => 'DataColumn', // can be omitted, default
|
||||
'name' => 'column1',
|
||||
'class' => 'yii\grid\DataColumn', // can be omitted, default
|
||||
'value' => function ($data) {
|
||||
return $data->name;
|
||||
},
|
||||
'type'=>'raw',
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user