Utility functions

The utility functions help with retrieving commonly stored data in a content type. For example, the getAdvanced(node) wrapper function retrieves all the content type’s Advanced form section settings so you do not have to worry about retrieving each one separately. Retrieving background images and associated properties is also made easy with the getBackgroundImages(node) function.

For implementation details View Source

Functions

getBackgroundImages(node)Object

Retrieve background images from a master format node

getVerticalAlignment(node)Object

Retrieve vertical alignment from a master format node

verticalAlignmentToFlex(alignment)*

Convert vertical alignment values to flex values

flexToVerticalAlignment(flex)*

Convert flex to vertical alignment values

getAdvanced(node)Object

Retrieve advanced props from content type node

getPadding(node)Object

Retrieve the padding from a content type node

getMargin(node)Object

Retrieve the margin from a content type node

getBorder(node)Object

Retrieve the border from a content type node

getTextAlign(node)Object

Retrieve the text align from a content type node

getCssClasses(node)Object

Retrieve the CSS classes from a content type node

getIsHidden(node)Object

Retrieve if CSS display property is set to none from a content type node

getBackgroundImages(node) ⇒ Object

Retrieve background images from a master format node

Kind: global function

Param
node

getVerticalAlignment(node) ⇒ Object

Retrieve vertical alignment from a master format node

Kind: global function

Param
node

verticalAlignmentToFlex(alignment) ⇒ \*

Convert vertical alignment values to flex values

Kind: global function

Param
alignment

flexToVerticalAlignment(flex) ⇒ \*

Convert flex to vertical alignment values

Kind: global function

Param
flex

getAdvanced(node) ⇒ Object

Retrieve advanced props from content type node

Kind: global function

Param
node

getPadding(node) ⇒ Object

Retrieve the padding from a content type node

Kind: global function

Param
node

getMargin(node) ⇒ Object

Retrieve the margin from a content type node

Kind: global function

Param
node

getBorder(node) ⇒ Object

Retrieve the border from a content type node

Kind: global function

Param
node

getTextAlign(node) ⇒ Object

Retrieve the text align from a content type node

Kind: global function

Param
node

getCssClasses(node) ⇒ Object

Retrieve the CSS classes from a content type node

Kind: global function

Param
node

getIsHidden(node) ⇒ Object

Retrieve if CSS display property is set to none from a content type node

Kind: global function

Param
node

For implementation details View Source.