Class: ManualRowResize

ManualRowResize

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

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 217

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 104

disablePlugin()

Disable plugin for this Handsontable instance.

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

enablePlugin()

Enable plugin for this Handsontable instance.

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

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 206

hideHandleAndGuide()

Hide both the resize handle and resize guide.

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

isEnabled(){Boolean}

Check if the plugin is enabled in the handsontable settings.

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

loadManualRowHeights(){Array}

Load the previously saved sizes using the persistentState plugin.

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

refreshGuidePosition()

Refresh the resize guide position.

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

refreshHandlePosition()

Refresh the resize handle position.

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

saveManualRowHeights()

Save the current sizes using the persistentState plugin.

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

setManualSize(row, height){Number}

Cache the current row height.

Parameters:
Name Type Description
row Number

Row index.

height Number

Row height.

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

setupGuidePosition()

Set the resize guide position.

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

setupHandlePosition(TH)

Set the resize handle position.

Parameters:
Name Type Description
TH HTMLCellElement

TH HTML element.

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

updatePlugin()

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