Browse Source

Merge pull request #2686 from sanchezby/master

Corrected sample in data-grid.md
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
81ce1497da
  1. 4
      docs/guide/data-grid.md

4
docs/guide/data-grid.md

@ -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',
],
],
]);

Loading…
Cancel
Save