kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Create subview #960

Closed DesRodman closed 3 years ago

DesRodman commented 4 years ago

Hello team

Can you please explain how can possible to config GridView for make show such kind of subview - https://prnt.sc/tulq6t My example of view is

echo \kartik\grid\GridView::widget([
                    'dataProvider' => $dataProvider,
                    'tableOptions' => [
                        'class' => 'table table-striped table-bordered table-condensed table-hover table-footer-nowrap table-sm'
                    ],
                    'columns' => [
                        ['class' => 'yii\grid\SerialColumn'],
                        [
                            'format' => 'raw',
                            'attribute' => 'login',
                            'value' => function ($model) {
                                return SmsPhoneCodeTitle::getDetailInfoByIso($model->id_country);
                            }
                        ],
                        'name',
                        'company_name',
                        [
                            'format' => 'raw',
                            'attribute' => 'e_mail',
                            'value' => function ($model) {
                                return mb_strimwidth($model->e_mail, 0, 30, "...");
                            }
                        ],
                        'phone',
                        ],
                    ],
                ]); 

What kind of params i should to add for show detail info about client?

Thanks

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.