GridView row as link, except action column items in Yii2

后端 未结 8 2055
忘了有多久
忘了有多久 2021-01-02 06:20

When i use the below code it overrides the action-column delete/update links.

\'rowOptions\' => function ($model, $key, $index, $grid) {
    return [
             


        
8条回答
  •  梦毁少年i
    2021-01-02 07:19

    User 'filterPosition'=>' ',

     $dataProvider,
                            'filterModel' => $searchModel,
                            'resizableColumns' => true,
                            'containerOptions' => ['style' => 'overflow: auto'], // only set when $responsive = false
                            'headerRowOptions' => ['class' => 'kartik-sheet-style'],
                            'filterRowOptions' => ['class' => 'kartik-sheet-style'],
                            'pjax' => true,
                            'hover' => true,
                            'export' => false,
                            'columns' => $gridColumns,
                            'filterPosition'=>' ',
                        ]);
                        ?>
    

提交回复
热议问题