Components
Group

Group

The Group group is a layout and collapsible field that can contain one or more fields or layout components like Group, Columns, Array, Tabs or Steps.

Example

{
  "component": "group",
  "label": "I'm a group",
  "name": "my_group",
  "collapsible": true,
  "open": true,
  "align": "center",
  "fields": [
    // fields inside the group
  ]
}
Loading...

LetsForm DSL

The above example can also be defined with LetsForm DSL

<LfGroup
  label="I'm a group"
  name="my_group"
  collapsible={true}
  open={true}
  align="center"
>
  <LfField
    component="input-text"
    label="My text inside a group"
    name="my_text"
    fullWidth={true}
  />
</LfGroup>

Reference

PropertyTypeDescription
componentstring
= "group"
namestringGroup name (for internal scripting)
labelstring | i18nLabel of the field
hiddenbooleanHides the field from the form
alignstringValues: "left", "center", "right".
collapsiblebooleanMake the group of fields collapsible
openbooleanCollapsible group initially open. Default: true.
borderstringValues: "top", "bottom", "topBottom", "boxed".

Also chech the CSS variables to customize the group component.

Bootstrap
React Suite