group(pItems, [name])
Returns the Group instance and sets it if argument Group is given. Groups items to a new group. Returns the resulting group instance. If a string is given as the only argument, the group by the given name will be returned.
Type: function
Parameter(s):
- pItems {Array}:
An array of page items (must contain at least two items) or name of group instance.
- name {String} Optional:
The name of the group, only when creating a group from page items.
Returns:
-
{Group}:
The group instance.