如何在GRIDVIEW的标题旁边添加图标?
这样的事情。
[
'attribute' => 'address',
'format'=>'raw',
'label'=>'<i class=\"fa fa-map\"><\i>test',
],
您应该将DataColumn的'encodeLabel'属性设置为false
[
'attribute' => 'address',
'label' => '<span class="glyphicon glyphicon-star">' ,
'encodeLabel' => false,
],
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句