Author Topic: How do I add a class to a column?  (Read 1185 times)

angelahlp

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
How do I add a class to a column?
« on: January 22, 2021, 12:42:42 pm »
I have the dataIndx for a column and want to add a class to it? It doesn't seem to be possible with the "addClass" method. Can you please tell me how to do this?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How do I add a class to a column?
« Reply #1 on: January 22, 2021, 04:49:36 pm »
First find the column from dataIndx

https://paramquery.com/pro/api#method-getColumn

then add cls property to the column.

https://paramquery.com/pro/api#option-column-cls