Is it possible to add an icon or eventHandler to the headers

Tags: #<Tag:0x00007fc46a90d810>

I need to add an icon with the text to the rowHeaders which will be clickable to fire an event to display/hide/add a new row.

It seems to me headers[both row or column] only take text and in order to add icons and event handling, I have to use cell.

Is this true? or Is there any easier way to do so?

And if this is true, is there any plan to make headers customizable and furthermore supports React component(HotColHeaders or HotRowHeaders)?


HI @george1

You can use afterGetRowHeader function to attach HTML into row header. If you’d like to add HTML to column headers there’s a similar hook called afterGetColHeader.

1 Like