Fragments

Fragments

Class for providing support for Fragments. To know more about fragments use-case in document generation and document templates, please see the documentation

Constructor

new Fragments()

Description:

Methods

addFragment(fragment)

Description:
  • To add JsonObject into the fragmentsList.

Parameters:
Name Type Description
fragment Object

JSON Object to be added to fragmentsList

addFragments(fragments)

Description:
  • To add List of JsonObject into the fragmentsList.

Parameters:
Name Type Description
fragments Array

List of JSON object to be added to fragmentsList

getFragmentsList()

Description:
  • Gets the fragmentsList.

Returns:

the list of fragments