Class: ManualColumnResize

ManualColumnResize

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

ManualColumnResize Plugin.

Has 2 UI components:

  • handle - the draggable element that sets the desired width of the column.
  • guide - the helper guide that shows the desired width as a vertical guide.

Methods

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 224

checkIfColumnHeader(element){Boolean}

Check if provided element is considered a column header.

Parameters:
Name Type Description
element HTMLElement

HTML element.

Returns: {Boolean}
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 458

clearManualSize(column)

Clear cache for the current column index.

Parameters:
Name Type Description
column Number

Column index.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 105

disablePlugin()

Disable plugin for this Handsontable instance.

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

enablePlugin()

Enable plugin for this Handsontable instance.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 244

getTHFromTargetElement(element){HTMLElement}

Get the TH element from the provided element.

Parameters:
Name Type Description
element HTMLElement

HTML element.

Returns: {HTMLElement}
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 213

hideHandleAndGuide()

Hide both the resize handle and resize guide.

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

isEnabled(){Boolean}

Check if the plugin is enabled in the handsontable settings.

Returns: {Boolean}
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 121

loadManualColumnWidths(){Array}

Load the previously saved sizes using the persistentState plugin.

Returns: {Array}
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 206

refreshGuidePosition()

Refresh the resize guide position.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 182

refreshHandlePosition()

Refresh the resize handle position.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 112

saveManualColumnWidths()

Save the current sizes using the persistentState plugin.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 439

setManualSize(column, width){Number}

Cache the current column width.

Parameters:
Name Type Description
column Number

Column index.

width Number

Column width.

Returns: {Number}
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 189

setupGuidePosition()

Set the resize guide position.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 134

setupHandlePosition(TH)

Set the resize handle position.

Parameters:
Name Type Description
TH HTMLCellElement

TH HTML element.

handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 91

updatePlugin()

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