Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Comparing #3 with #4

Revision #4 was created by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz) on Oct 22, 2013, 3:45:38 PM.

html span closing

Content

[...]
'name3',

array(
'header' => 'custom',
'type'=>'raw',
'value' => '($data->field1 > 10) ? "<a><span class=\"icon-gift\"></
span></a>" : "<a><span class=\"icon-camera\"></span></a>"',
),
...
)));
```
[...]