Class: Fragments:Group

Fragments:Group

new Fragments:Group()

Embodies a fragment of type "Group" (which is a group of subfragments)
Source:

Methods

asHtml() → {string}

Turns the fragment into a useable HTML version of it. If the native HTML code doesn't suit your design, this function is meant to be overriden.
Source:
Returns:
- basic HTML code for the fragment
Type
string

asText() → {string}

Turns the fragment into a useable text version of it.
Source:
Returns:
- basic text version of the fragment
Type
string

toArray() → {Array}

Turns the Group fragment into an array in order to access its items (groups of fragments), or to loop through them.
Source:
Returns:
- the array of groups, each group being a JSON object with subfragment name as keys, and subfragment as values
Type
Array