Tutorial: Bind rows with headers

Bind rows with headers

Edit on GitHub


The Bind rows with headers plugin allows, as it's name suggests, binding the table rows with their headers.
If the plugin is enabled, the table row headers will "stick" to the rows. For example, if you move a row, the header content will move with it. Basically, if at the initialization row 0 has a header titled "A", it will be attached to it, no matter what you do with the table.

Quick setup

To enable the plugin, simply set the bindRowsWithHeaders property to true, when initializing Handsontable.
Try moving the rows in the example below, to see what this plugin actually does.