Use icon in jqGrid column header?

I want to use the jQuery UI ui-icon-comment icon as a column header in one of my columns. Is there any way to do this?

Alternatively, if this is not possible, is there a way to use a PNG image in the header?

+4
source share
1 answer

Elements from the array colNamescan contain any HTML fragments: therefore, you can place the following text as a column heading:

"<span class='ui-icon ui-icon-comment' style='display:inline-block'/>"

I think he will do what you need.

+7
source

All Articles