Annotation carrying one or more named layout DSL templates that control how a
form arranges a schema's fields (consumed by @dxos/react-ui-form's
Form.Layout / Form.FieldSet). Callers select a variant by name; the
implicit name is DEFAULT_LAYOUT_NAME ('default').
Annotation carrying one or more named layout DSL templates that control how a form arranges a schema's fields (consumed by
@dxos/react-ui-form'sForm.Layout/Form.FieldSet). Callers select a variant by name; the implicit name isDEFAULT_LAYOUT_NAME('default').Templates use a minimal XML grammar. Example:
FormLayoutAnnotation.set({ default:
<grid cols="2"> <field name="origin"/> <field name="destination"/> <field name="provider" span="2"/> </grid>, card:<grid cols="1"> <field name="provider"/> <field name="number"/> </grid>, })