Package org.patternfly.component.form
Class FormGroup
java.lang.Object
org.patternfly.component.SubComponent<E,B>
org.patternfly.component.form.FormGroup
- All Implemented Interfaces:
Container<elemental2.dom.HTMLElement,,FormGroup> Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,,FormGroup> HasHTMLElement<elemental2.dom.HTMLElement,,FormGroup> IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,,FormGroup> WithIdentifier<elemental2.dom.HTMLElement,,FormGroup> ComponentContext<elemental2.dom.HTMLElement,FormGroup>
public class FormGroup
extends SubComponent<E,B>
implements WithIdentifier<elemental2.dom.HTMLElement,FormGroup>, ComponentContext<elemental2.dom.HTMLElement,FormGroup>
-
Method Summary
Modifier and TypeMethodDescriptionaddControl(FormGroupControl control) addLabel(FormGroupLabel label) static FormGroupstatic FormGroup<T> Tbooleanrequired()required(boolean required) role(FormGroupRole role) Sets the role of the form group.<T> FormGroupthat()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.patternfly.core.ComponentContext
get, getMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
Method Details
-
formGroup
-
formGroup
-
addLabel
-
addControl
-
required
-
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. -
store
- Specified by:
storein interfaceComponentContext<elemental2.dom.HTMLElement,FormGroup>
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLElement,FormGroup>
-
identifier
- Specified by:
identifierin interfaceWithIdentifier<elemental2.dom.HTMLElement,FormGroup>
-
has
- Specified by:
hasin interfaceComponentContext<elemental2.dom.HTMLElement,FormGroup>
-
get
- Specified by:
getin interfaceComponentContext<elemental2.dom.HTMLElement,FormGroup>
-