yii – Kartik Grid可编辑列,不适用expandrow样式

前端之家收集整理的这篇文章主要介绍了yii – Kartik Grid可编辑列,不适用expandrow样式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我使用pjax拉入kartik可扩展行网格时,未应用editablecolumn样式.如何将css应用于此列?
<?PHP echo GridView::widget([
        'dataProvider' => $dataProvider,'filterModel' => $searchModel,'pjax' => false,'columns' => [
            [
                'class' => 'kartik\grid\ExpandRowColumn','value' => function ($model,$key,$index,$column){
                    return GridView::ROW_COLLAPSED;
                },'detailUrl' => 'index.PHP?r=controller/detail'
            ],

扩展视图

<?PHP echo GridView::widget([
            'dataProvider' => $dataProvider,'pjax'=> true,'columns' => [
                [
                    'attribute' => 'brand_name','value' => function($model,$idx,$col){
                            return $model['brand_name'];
                        },],[
                    'class'=>'kartik\grid\EditableColumn','hAlign'=>'center','vAlign'=>'middle',$col){
                            return 100;
                        },'editableOptions' => [
                        'name' => 'Test','header' => 'Test22','inputType' => Editable::INPUT_TEXT,'formOptions' => ['action' => ['/book/editbook']],'options' => [
                            'convertFormat'=>true,'pluginOptions' => ['format' => 'PHP:Y-m-d']
                        ]
                    ]
                ],
@H_502_10@ 也许您应该尝试使用editableOptions中的containerOptions或contentOptions属性设置HTML.
原文链接:https://www.f2er.com/php/137281.html

猜你在找的PHP相关文章