Skip to content

Members

PLUGIN_KEY

Source code

StretchColumns.PLUGIN_KEY

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

PLUGIN_PRIORITY

Source code

StretchColumns.PLUGIN_PRIORITY

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

SETTING_KEYS

Source code

StretchColumns.SETTING_KEYS

Returns whether the plugin handles its own settings keys without a dedicated key list.

Methods

destroy

Source code

stretchColumns.destroy()

Destroys the plugin instance.

disablePlugin

Source code

stretchColumns.disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enablePlugin

Source code

stretchColumns.enablePlugin()

Enables the plugin functionality for this Handsontable instance.

getColumnWidth

Source code

stretchColumns.getColumnWidth(columnVisualIndex) ⇒ number | null

Gets the calculated column width based on the stretching strategy defined by Options#stretchH option.

ParamTypeDescription
columnVisualIndexnumberThe visual index of the column.

isEnabled

Source code

stretchColumns.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 #enablePlugin method is called.

updatePlugin

Source code

stretchColumns.updatePlugin()

Updates the plugin’s state. This method is executed when Core#updateSettings is invoked.