Custom header HTML

Hello. I am wondering if using the hook afterGetColHeader is seriously the recommended way to render HTML in a header. This hook fires 100s of times as you scroll through a table. Adding a click handler to the custom HTML would result in an instant browser freeze as the handler is now attached 1000s of times…

Hi @anthony.agostino

Yes, currently this is the recommended and only way to inject the HTML element into the column headers. Performance shouldn’t be an issue here. The reason that there are so many renders comes from the fact that Handsontable rendering engine works this way and re-renders the table with each change, including scrolling.