当我使用pjax拉入kartik可扩展行网格时,未应用editablecolumn样式.如何将css应用于此列?
扩展视图
- <?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']
- ]
- ]
- ],
也许您应该尝试使用editableOptions中的containerOptions或contentOptions属性设置HTML.