Skip to content

Description

Initializes the plugin and applies CSS classes to the resize handle and guide elements.

Members

PLUGIN_KEY

Source code

ManualColumnResize.PLUGIN_KEY

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

PLUGIN_PRIORITY

Source code

ManualColumnResize.PLUGIN_PRIORITY

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

Methods

clearManualSize

Source code

manualColumnResize.clearManualSize(column)

Clears the cache for the specified column index.

ParamTypeDescription
columnnumberVisual column index.

destroy

Source code

manualColumnResize.destroy()

Destroys the plugin instance.

disablePlugin

Source code

manualColumnResize.disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enablePlugin

Source code

manualColumnResize.enablePlugin()

Enables the plugin functionality for this Handsontable instance.

isEnabled

Source code

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

loadManualColumnWidths Deprecated

Source code

manualColumnResize.loadManualColumnWidths() ⇒ Array

Deprecated. The `PersistentState` plugin has been removed. This method is a no-op and will be removed in a future major release.

saveManualColumnWidths Deprecated

Source code

manualColumnResize.saveManualColumnWidths()

Deprecated. The `PersistentState` plugin has been removed. This method is a no-op and will be removed in a future major release.

setManualSize

Source code

manualColumnResize.setManualSize(column, width) ⇒ number

Sets the new width for specified column index.

ParamTypeDescription
columnnumberVisual column index.
widthnumberColumn width (no less than 20px).

Returns: number - Returns new width.

updatePlugin

Source code

manualColumnResize.updatePlugin()

Updates the plugin’s state.

This method is executed when updateSettings() is invoked with any of the following configuration options: