A
A
Arsen Siyukhov2015-04-01 14:45:07
Yii
Arsen Siyukhov, 2015-04-01 14:45:07

How to make scrollable table with fixed header in GridView Yii2?

<?= GridView::widget([
            'dataProvider' => $dataProvider,
            'filterModel' => $searchModel,
            'columns' => [
                ['class' => 'yii\grid\CheckBoxColumn'],

                [
                'attribute'=>'tovarNameFilter',
                'value'=>'tovarName',
                ],
                [
                    'attribute'=>'providerNameFilter',
                    'value'=>'providerName',
                ],
                [
                    'attribute'=>'documentNameFilter',
                    'value'=>'documentName',
                ],
                'account',
                'serial',
                [
                    'attribute'=>'userNameFilter',
                    'value'=>'userName',
                ],

                ['class' => 'yii\grid\ActionColumn'],
            ],
        ]); ?>

3884da7564144bda94b0fa4d2dc252aa.png
Tell me what can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
theded, 2015-04-15
@theded

google
https://www.google.ru/#newwindow=1&q=html+tbody+scroll

D
dbuhonov, 2021-02-19
@dbuhonov

Add class table-responsive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question