ManualRowResize

This plugin allows to change rows height. To make rows height persistent the Options#persistentState
plugin should be enabled.

The plugin creates additional components to make resizing possibly using user interface:

  • handle - the draggable element that sets the desired height of the row.
  • guide - the helper guide that shows the desired height as a horizontal guide.

Methods

destroy()

Destroys the plugin instance.

disablePlugin()

Disables the plugin functionality for this Handsontable instance.

enablePlugin()

Enables the plugin functionality for this Handsontable instance.

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 than the ManualRowResize#enablePlugin method is called.

Returns: {boolean}

loadManualRowHeights(){Array}

Loads the previously saved sizes using the persistentState plugin (the Options#persistentState option
has be enabled).

Fires:
Returns: {Array}

saveManualRowHeights()

Saves the current sizes using the persistentState plugin (the Options#persistentState option has to be
enabled).

Fires:

setManualSize(row, height){number}

Sets the new height for specified row index.

Parameters:
Name Type Description
row number

Visual row index.

height number

Row height.

Returns: {number} Returns new height.

updatePlugin()

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

Class: ManualRowResize