fieldSet

The fieldSet component helps group related items on a view, making it easier to understand.

XML Element

fieldSet

Java Class

FieldSet

Attributes

General: id - enabled - legendText - text - visible

Data Binding: dataContainer - property

Size: height - maxHeight - maxWidth - minHeight - minWidth - width

Position: alignSelf - colspan

Look & Feel: classNames - css - themeNames - whiteSpace

Other: ariaLabel - ariaLabelledBy - title

Handlers

AttachEvent - DetachEvent

Basics

To use the component, wrap the components you want to group inside it, and optionally add a legendText for a title.

<fieldSet legendText="Group" classNames="border rounded-m text-secondary flex flex-col">
    <textField label="TextField"/>
    <checkbox label="Checkbox"/>
</fieldSet>
fieldset basic

Attributes

Common attributes serve the same purpose for all components. The following attributes are specific to fieldSet:

Name

Description

Default

legendText

Provides a caption or title for the grouped fields.