Form Layout: new layout model #7172
Labels
acceptance criteria
used for the acceptance criteria checklist
DS
Design System feature (e.g. component)
v24.7
Description
The current FormLayout layout model is inflexible and has several issues. A new layout model based on css grid provides more flexibility, solves many of the issues, and is backward compatible with the old model.
Features
Acceptance criteria
(API proposals in parenthesis)
auto-responsive
/setAutoResponsive(boolean)
)vaadin-form-row
element (FormRow
class in Flow) for explicitly grouping fields into rows (when using single-column-default mode, see below)vaadin-form-item
svaadin-form-item
wrapping still supported for backward compatibility, non-field elements, and rich label supportcolspan
/data-colspan
works as beforeAdditional APIs
column-width
/setColumnWidth(String)
; field column width in side-labels mode)label-column-width
/setLabelColumnWidth(String)
; for side-labels mode; like current model defaults to--vaadin-form-item-label-width
if defined)--vaadin-form-item-label-spacing
is sufficient)max-columns
/setMaxColumns(int)
; should default to something reasonable like 10)expand-columns
/setExpandColumns(enum)
)fit-fields
/setFitFields(enum)
)labels-aside
/setLabelPosition(LabelPosition)
)Defaults for full backward compatibility in V24.7
responsiveSteps
as old version<br>
Nice to haves
vaadin-form-section
/FormSection
)Changes to defaults planned in V25
Enhancements
Changes to defaults
responsiveSteps
to revert back to old behavior)General criteria
Security
The text was updated successfully, but these errors were encountered: