ManualColumnResize
Methods
clearManualSize
manualColumnResize.clearManualSize(column)
Clears the cache for the specified column index.
| Param | Type | Description |
|---|---|---|
| column | number | Visual column index. |
destroy
manualColumnResize.destroy()
Destroys the plugin instance.
disablePlugin
manualColumnResize.disablePlugin()
Disables the plugin functionality for this Handsontable instance.
enablePlugin
manualColumnResize.enablePlugin()
Enables the plugin functionality for this Handsontable instance.
isEnabled
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
manualColumnResize.loadManualColumnWidths() ⇒ Array
Loads the previously saved sizes using the persistentState plugin (the Options#persistentState option has to be enabled).
Emits: Hooks#event:persistentStateLoad
saveManualColumnWidths
manualColumnResize.saveManualColumnWidths()
Saves the current sizes using the persistentState plugin (the Options#persistentState option has to be enabled).
Emits: Hooks#event:persistentStateSave
setManualSize
manualColumnResize.setManualSize(column, width) ⇒ number
Sets the new width for specified column index.
| Param | Type | Description |
|---|---|---|
| column | number | Visual column index. |
| width | number | Column width (no less than 20px). |
Returns: number - Returns new width.
updatePlugin
manualColumnResize.updatePlugin()
Updates the plugin’s state.
This method is executed when updateSettings() is invoked with any of the following configuration options: