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 223
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 457
clearManualSize(column)
-
Clear cache for the current column index.
Parameters:
Name Type Description column
Number Visual column index.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 104
disablePlugin()
-
Disable plugin for this Handsontable instance.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 58
enablePlugin()
-
Enable plugin for this Handsontable instance.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 243
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 212
hideHandleAndGuide()
-
Hide both the resize handle and resize guide.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 51
isEnabled(){Boolean}
-
Check if the plugin is enabled in the handsontable settings.
Returns: {Boolean}
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 120
loadManualColumnWidths(){Array}
-
Load the previously saved sizes using the persistentState plugin.
Returns: {Array}
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 205
refreshGuidePosition()
-
Refresh the resize guide position.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 181
refreshHandlePosition()
-
Refresh the resize handle position.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 111
saveManualColumnWidths()
-
Save the current sizes using the persistentState plugin.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 438
setManualSize(column, width){Number}
-
Cache the current column width.
Parameters:
Name Type Description column
Number Visual column index.
width
Number Column width.
Returns: {Number}
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 188
setupGuidePosition()
-
Set the resize guide position.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 133
setupHandlePosition(TH)
-
Set the resize handle position.
Parameters:
Name Type Description TH
HTMLCellElement TH HTML element.
-
handsontable/src/plugins/manualColumnResize/manualColumnResize.js, line 90
updatePlugin()
-
Updates the plugin to use the latest options you have specified.