Skip to content

BindRowsWithHeaders

Options

bindRowsWithHeaders

Source code

bindRowsWithHeaders.bindRowsWithHeaders : boolean | string

The bindRowsWithHeaders option configures the BindRowsWithHeaders plugin.

When enabled, each row stays permanently linked to its row header label, regardless of row sorting or row moving. Normally, row headers display the visual row index and update as rows are reordered; with this plugin enabled, the header travels with the data row it was originally assigned to.

You can set the bindRowsWithHeaders option to one of the following:

SettingDescription
falseDisable the the BindRowsWithHeaders plugin
trueEnable the the BindRowsWithHeaders plugin

This option can only be set at the grid level. It has no effect when set in the columns, cells, or cell options.

Read more:

Default: undefined
Example

// enable the `BindRowsWithHeaders` plugin
bindRowsWithHeaders: true

Members

PLUGIN_KEY

Source code

BindRowsWithHeaders.PLUGIN_KEY

Returns the plugin key used to identify this plugin in Handsontable settings.

PLUGIN_PRIORITY

Source code

BindRowsWithHeaders.PLUGIN_PRIORITY

Returns the priority order used to determine the order in which plugins are initialized.

Methods

destroy

Source code

bindRowsWithHeaders.destroy()

Destroys the plugin instance.

disablePlugin

Source code

bindRowsWithHeaders.disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enablePlugin

Source code

bindRowsWithHeaders.enablePlugin()

Enables the plugin functionality for this Handsontable instance.

isEnabled

Source code

bindRowsWithHeaders.isEnabled() ⇒ boolean

Checks if the plugin is enabled in the handsontable settings. This method is executed in Hooks#beforeInit hook and if it returns true then the BindRowsWithHeaders#enablePlugin method is called.