Skip to content

StretchCalculator

Description

Initializes the stretch columns calculator with the Handsontable instance and registers the stretch widths index map.

Methods

getStretchedWidth

Source code

stretchCalculator.getStretchedWidth(columnVisualIndex) ⇒ number | null

Gets the calculated column width.

ParamTypeDescription
columnVisualIndexnumberColumn visual index.

refreshStretching

Source code

stretchCalculator.refreshStretching()

Recalculates the column widths.

useStrategy

Source code

stretchCalculator.useStrategy(strategyName)

Sets the active stretch strategy.

ParamTypeDescription
strategyName'all'
'last'
'none'
The stretch strategy to use.