Ionian316
Ionian316

Reputation: 2343

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?

Upvotes: 6

Views: 1852

Answers (1)

Oleg
Oleg

Reputation: 221997

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.

Upvotes: 9

Related Questions