Yii2 Gridview复选框列,复选框单元格的背景色
有没有办法只为复选框列设置背景色Yii2 Gridview复选框列,复选框单元格的背景色,yii2,Yii2,有没有办法只为复选框列设置背景色 谢谢 要设置列属性的样式,可以使用选项 ...... 'columns' => [ // ... [ 'class' => 'yii\grid\CheckboxColumn', / you may configure additional properties here 'options' => ['class'=> 'your_check_box_class' , style =>'b
谢谢 要设置列属性的样式,可以使用选项
......
'columns' => [
// ...
[
'class' => 'yii\grid\CheckboxColumn',
/ you may configure additional properties here
'options' => ['class'=> 'your_check_box_class' , style =>'background-color: #ff0000;'],
],
],
对于复选框内容,可以使用contentOptions