AlignType

Source: ActiveBoxContent.js:41

This class is used as a container for horizontal and vertical alignments of content inside a cell.


Constructor

new AlignType(h?: string, v?: string): AlignType

AlignType constructor

Parameters

  • h (string, optional) — Horizontal alignment. Possible values are left, center and right
  • v (string, optional) — Vertical alignment. Possible values are top, center and bottom

Instance Methods

getAttributes(): object

Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.

Returns

  • object

setAttributes( data: object, ): module:boxes/ActiveBoxContent.AlignType

Reads the properties of this AlignType from a data object

Parameters

  • data (object) — The data object to be parsed

Returns