On This Page
Wrap whatever content with a unique field label.
- Fluent
- Declarative
CustomField.builder()
.label("Custom field")
.content(HorizontalLayout.builder().content(List.of(
FormField.builder()
.id("name")
.dataType(FieldDataType.string)
.build(),
FormField.builder()
.id("birthDate")
.dataType(FieldDataType.date)
.build()
)).spacing(true)
.build())
.build()
TBD
Available properties
This is the list of available properties for a context menu:
| Property | Description | Notes |
|---|---|---|
| id | id for this component | |
| cssClasses | list of css classes | content of the css attribute |
| style | inline style attributes | content of the style attribute |
| label | the label | |
| content | the wrapped content |
You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/custom-field