Closed wohral closed 7 years ago
You have to specify your own custom column type and its rendering.
In this case you can extend TextColumn
, use a different column type name
public function getType()
{
return 'class_icon';
}
and put the html part into render
I thought I have to do it this way. Anyway, thank you :)
Is there any way, how to make custom rendering of value in grid. For example I would like to render text field, and put the icon in front of text.
Something like used in Ubladoo datagrid for Nette https://ublaboo.org/datagrid/column#renderer
Or I have to specify my custom Type? and define custom class and block?