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:

PropertyDescriptionNotes
idid for this component
cssClasseslist of css classescontent of the css attribute
styleinline style attributescontent of the style attribute
labelthe label
contentthe wrapped content

You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/custom-field