Align values within cells: horizontally (to the right, left, center, or by justifying them), and vertically (to the top, middle, or bottom of the cell).
To initialize Handsontable with predefined horizontal and vertical alignment globally, provide the alignment details in the
className option, for example:
You can also configure cells individually by setting up the
cells option. See the code sample below for an example.
Available class names:
You can track alignment changes by using the
The following code sample configures the grid to use
htCenter and configures individual cells to use different alignments.