How to manually specify a different class for each ColumnHeaders

Tags: #<Tag:0x00007efc64645520>

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.

Captura%20de%20tela%202022-09-16%20121117

Captura%20de%20tela%202022-09-16%20121140

Captura%20de%20tela%202022-09-16%20121256

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.