How to add an icon beside the header of a GRIDVIEW?
something like this.
[
'attribute' => 'address',
'format'=>'raw',
'label'=>'<i class=\"fa fa-map\"><\i>test',
],
You should set 'encodeLabel' property of DataColumn to false
[
'attribute' => 'address',
'label' => '<span class="glyphicon glyphicon-star">' ,
'encodeLabel' => false,
],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With