Package org.patternfly.component.form
Class FormGroup
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement,FormGroup>
org.patternfly.component.form.FormGroup
- All Implemented Interfaces:
Attachable
,Container<HTMLElement,
,FormGroup> Finder<HTMLElement>
,HasElement<HTMLElement,
,FormGroup> HasHTMLElement<HTMLElement,
,FormGroup> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
FormGroup>
-
Method Summary
Modifier and TypeMethodDescriptionaddControl
(FormGroupControl control) addLabel
(FormGroupLabel label) void
attach
(MutationRecord mutationRecord) static FormGroup
required()
role
(FormGroupRole role) Sets the role of the form group.that()
Methods inherited from class org.patternfly.component.SubComponent
element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Attachable
detach
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Method Details
-
formGroup
-
attach
- Specified by:
attach
in interfaceAttachable
-
addLabel
-
addControl
-
fieldId
-
required
-
role
Sets the role of the form group. Pass inFormGroupRole.radiogroup
when the form group contains multiple radio inputs, or pass inFormGroupRole.group
when the form group contains multiple of any other input type (e.g. checkboxes).Please note that if you set a role, the internal structure of the
FormGroupLabel
changes. Without a role the label contains a<label>
element. With a role the<label>
element is replaced by a<span>
element. In this case it is expected that theFormGroupControl
contains label elements. -
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
FormGroup>
-