Class: DescribedDataFieldGroup

described_field.DescribedDataFieldGroup(dataField)

new DescribedDataFieldGroup(dataField)

Adds groups to module:described_field.DescribedDataFields. These groups are dynamically added properties that contain an array of sub fields of the same type module:described_field.DescribedDataFields.

Parameters:
Name Type Description
dataField module:described_field.DescribedDataField
Source:
Example
new described_field.DescribedDataFieldGroup(field).addGroupEntry("details", detailField);

Methods

addGroupEntries(groupName, describedFields) → {DescribedDataFieldGroup}

Adds entries to the given group. If the group does not exist, it will be created.

Parameters:
Name Type Description
groupName String

name of the group to which the entries will be added

describedFields Array.<module:described_field.DescribedDataField>

sub fields that are added to the group

Source:
Returns:
Type
DescribedDataFieldGroup

addGroupEntry(groupName, describedField) → {DescribedDataFieldGroup}

Adds an entry to the given group. If the group does not exist, it will be created.

Parameters:
Name Type Description
groupName String

name of the group to which the entry will be added

describedField module:described_field.DescribedDataField

sub field that is added to the group

Source:
Returns:
Type
DescribedDataFieldGroup