StretchColumns
Members
PLUGIN_KEY
StretchColumns.PLUGIN_KEY
Returns the plugin key used to identify this plugin in Handsontable settings.
PLUGIN_PRIORITY
StretchColumns.PLUGIN_PRIORITY
Returns the priority order used to determine the order in which plugins are initialized.
SETTING_KEYS
StretchColumns.SETTING_KEYS
Returns whether the plugin handles its own settings keys without a dedicated key list.
Methods
destroy
stretchColumns.destroy()
Destroys the plugin instance.
disablePlugin
stretchColumns.disablePlugin()
Disables the plugin functionality for this Handsontable instance.
enablePlugin
stretchColumns.enablePlugin()
Enables the plugin functionality for this Handsontable instance.
getColumnWidth
stretchColumns.getColumnWidth(columnVisualIndex) ⇒ number | null
Gets the calculated column width based on the stretching strategy defined by Options#stretchH option.
| Param | Type | Description |
|---|---|---|
| columnVisualIndex | number | The visual index of the column. |
isEnabled
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
stretchColumns.updatePlugin()
Updates the plugin’s state. This method is executed when Core#updateSettings is invoked.