Horizontal & vertical alignment

To initialize Handsontable with predefined horizontal and vertical alignment, provide className cells details in form of a grid, columns or cell setting (see code sample below).

Available classNames:

  • horizontal: htLeft, htCenter, htRight, htJustify,
  • vertical: htTop, htMiddle, htBottom.

Alignment changes can be tracked using afterSetCellMeta hook callback.