silverstripe-framework/admin/client/src/components/CompositeField/README.md

453 B

CompositeField

For containing groups of fields in a container element.

Example

<CompositeField name="Container">
    <TextField name="FirstName" />
    <TextField name="LastName" />
</CompositeField>

Properties

  • tag (string): The element type the composite field should use in HTML.
  • legend (boolean): A label/legend for the group of fields contained.
  • extraClass (string): Extra classes the CompositeField should have.