Answer the question
In order to leave comments, you need to log in
How to group output in GridView Yii2?
This is what my GridView looks like
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'group_id',
'value' => function ($model) {
return empty($model->group_id) ? '-' : $model->group->group_name;
},
],
'word_name',
],
]); ?>
Answer the question
In order to leave comments, you need to log in
Docs: demos.krajee.com/grid#grid-grouping
Demo: demos.krajee.com/group-grid
1. Touchscreen in laptops is not convenient. Indulge in a couple of days and forget
2. Putting Linux on a poppy is many times easier than poppy on Lenova
3. It's a macbook and in 10 years it's a macbook. And what is Lenova X1 - Lenova herself will forget in half a year
. And draw your own conclusions :)
When I thought about X1, I did not take it because I needed maximum power + operating time. Took T430s and upgraded to the maximum.
Although, of course, I want such compactness as the Carbon (I travel a lot, with a minimum of things and the laptop occupies a noticeable part of the backpack).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question