Class: ManualRowResize

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

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 to 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.

Fires:
Returns: {Number} Returns new height.

updatePlugin()

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