Class: ManualRowResize

ManualRowResize

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 21

ManualRowResize Plugin.

Has 2 UI components:

  • 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

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 216

checkIfRowHeader(element){Boolean}

Check if provided element is considered as a row header.

Parameters:
Name Type Description
element HTMLElement

HTML element.

Returns: {Boolean}
handsontable/src/plugins/manualRowResize/manualRowResize.js, line 103

disablePlugin()

Disable plugin for this Handsontable instance.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 58

enablePlugin()

Enable plugin for this Handsontable instance.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 236

getTHFromTargetElement(element){HTMLElement}

Get the TH element from the provided element.

Parameters:
Name Type Description
element HTMLElement

HTML element.

Returns: {HTMLElement}
handsontable/src/plugins/manualRowResize/manualRowResize.js, line 205

hideHandleAndGuide()

Hide both the resize handle and resize guide.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 51

isEnabled(){Boolean}

Check if the plugin is enabled in the handsontable settings.

Returns: {Boolean}
handsontable/src/plugins/manualRowResize/manualRowResize.js, line 119

loadManualRowHeights(){Array}

Load the previously saved sizes using the persistentState plugin.

Returns: {Array}
handsontable/src/plugins/manualRowResize/manualRowResize.js, line 198

refreshGuidePosition()

Refresh the resize guide position.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 175

refreshHandlePosition()

Refresh the resize handle position.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 110

saveManualRowHeights()

Save the current sizes using the persistentState plugin.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 418

setManualSize(row, height){Number}

Cache the current row height.

Parameters:
Name Type Description
row Number

Visual row index.

height Number

Row height.

Returns: {Number}
handsontable/src/plugins/manualRowResize/manualRowResize.js, line 182

setupGuidePosition()

Set the resize guide position.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 132

setupHandlePosition(TH)

Set the resize handle position.

Parameters:
Name Type Description
TH HTMLCellElement

TH HTML element.

handsontable/src/plugins/manualRowResize/manualRowResize.js, line 89

updatePlugin()

Updates the plugin to use the latest options you have specified.