boxes/ActiveBoxContent. AlignType

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

Constructor

new AlignType(hopt, vopt)

AlignType constructor

Parameters:
NameTypeAttributesDescription
hstring<optional>

Horizontal alignment. Possible values are left, center and right

vstring<optional>

Vertical alignment. Possible values are top, center and bottom

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:
  • The resulting object, with minimal attrributes
Type: 
object

setAttributes(data) → {module:boxes/ActiveBoxContent.AlignType}

Reads the properties of this AlignType from a data object

Parameters:
NameTypeDescription
dataobject

The data object to be parsed