Reputation: 2528
How can I set an icon for some column in dojox.grid.TreeGrid / LazyTreeGrid ?
In dijit.Tree I can overload getIconClass method to acomplish this.
Upvotes: 2
Views: 574
Reputation: 57651
You can use CSS for that:
.dojoxGridCell[role="gridcell"][idx="3"]:before
{
content: url(icon.png);
}
This will display icon.png
in grid cells (indicated by class dojoxGridCell
and attribute role="gridcell"
) in column with the index 3.
This is using generated content so you might want to consult the support matrix. If you need to support IE6/IE7 then you will need a fallback solution, all other browsers will do fine.
Upvotes: 2