Tutorial: Alignment

Alignment


Edit this page

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.