How do I edit the header text of a Handsontable?

ksigmund picture ksigmund · Aug 21, 2013 · Viewed 14k times · Source

I'd like to be able to edit the text of column headers in a Handsontable but I can't seem to figure out if it's possible to make them editable. I suppose I could make the headers just another row, but I'd like to avoid that if at all possible.

To clarify: I'm actually looking for a way to allow the user to edit the header values (as they would a normal table cell

Answer

Jason picture Jason · Nov 2, 2014

This is probably too late for OP but anybody else looking for the same answer you can change the column headers (as well as other settings) after the table has already been rendered with the following:

var hot = $container.data('handsontable');
hot.updateSettings({
  colHeaders: ['A','B','C']
});

As far as I can tell you can pass any any settings that is available in the constructor.