Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use icon in jqGrid column header?

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

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

like image 695
Ionian316 Avatar asked Aug 01 '14 19:08

Ionian316


1 Answers

Items from colNames array can contain any HTML fragments: So you can place for example the following text as the column header:

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

I think that it will do what you need.

like image 82
Oleg Avatar answered Nov 12 '22 15:11

Oleg