Skip to content

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.