How to manually specify a different class for each ColumnHeaders

Hello, I’m currently working with handsontable v12.1.0 and i would like to know if there’s a way that i can manually set a different class to each column header, just one time, so that even if i freeze/unfreeze, hide or move my columns, they will remain with the styling i set for each one’s class.

Hi @thiagoferreira2902

You can achieve that by using toVisualColumn method inside afterGetColHeader hook, like here:

https://jsfiddle.net/rwmfaoLc/2/

1 Like

thank you, it worked!

@thiagoferreira2902

That’s great, I’m closing this topic then.