FieldGroup
fieldGroup
is a group of fields representing attributes of one or multiple entities contained in a datasource. The visual component representing a field is selected automatically depending on corresponding attribute type. If an attribute is a reference to other entity, it will be represented by PickerField by default.
fields button enables you to create fields included in the group and associate them with entity attributes. A field has the following specific properties:
- id - an optional identifier of the field. It is required if
property
is not set and the field is defined programmatically (see custom
below).
- property - binds the field to an entity attribute. Contains the name of the entity attribute.
- column - enables placing fields in columns. By default all fields are in column 0, to create more columns assign 1 or 2 to some fields.
- custom - specifies that the field presentation is defined by a custom component.
- optionsDatasource - a datasource providing the list of possible field values. If optionsDatasource is set for a reference field, LookupField will be used instead of default
PickerField
.
- validator - field value validator.
- captionAlignment - defines field header position, possible values are either
LEFT
or TOP
.
See FieldGroup for details.