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) voidattach(MutationRecord mutationRecord) static FormGrouprequired()role(FormGroupRole role) Sets the role of the form group.that()Methods inherited from class org.patternfly.component.SubComponent
elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Attachable
detachMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
-
Method Details
-
formGroup
-
attach
- Specified by:
attachin interfaceAttachable
-
addLabel
-
addControl
-
fieldId
-
required
-
role
Sets the role of the form group. Pass inFormGroupRole.radiogroupwhen the form group contains multiple radio inputs, or pass inFormGroupRole.groupwhen 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
FormGroupLabelchanges. 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 theFormGroupControlcontains label elements. -
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,FormGroup>
-