Author Topic: Is it possible to change the styles that are applied to the column headers?  (Read 3452 times)

Leo F

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Maybe I missed it in, but I see no way to do it within the api.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6255
    • View Profile
It's not possible to add class to header cell using API as of now (2.0.3) which might be added in the next version.

Currently you may use inline css or class in column.title.

column.title = "<span class='xyz' style='color:red;'>Some Title</span>";




Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
Do you have any update in 2.4.1 version to add style to column header?

Sunny

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
I am able to add style to the columnheader using cls attribute and addded css using .pq-grid-col.myClass{}