Class ExpandableSection
java.lang.Object
org.patternfly.component.BaseComponent<HTMLDivElement,ExpandableSection>
org.patternfly.component.expandable.ExpandableSection
- All Implemented Interfaces:
Attachable,Container<HTMLDivElement,,ExpandableSection> Finder<HTMLDivElement>,HasElement<HTMLDivElement,,ExpandableSection> HasHTMLElement<HTMLDivElement,,ExpandableSection> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,ExpandableSection> Component,Expandable<HTMLDivElement,ExpandableSection>
public class ExpandableSection
extends BaseComponent<HTMLDivElement,ExpandableSection>
implements Attachable, Expandable<HTMLDivElement,ExpandableSection>
An expandable section component is used to support progressive disclosure in a form or page by hiding additional content when
you don't want it to be shown by default. An expandable section can contain any type of content such as plain text, form
inputs, and charts.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd(ExpandableSectionContent content) add(ExpandableSectionToggle toggle) addContent(ExpandableSectionContent content) addToggle(ExpandableSectionToggle toggle) voidattach(MutationRecord mutationRecord) voidcollapse(boolean fireEvent) content()detachedFrom(String detachedFromId) Same as disclosure(true)disclosure(boolean disclosure) Adds/removes the disclosure modifiersvoidexpand(boolean fireEvent) static ExpandableSectionstatic ExpandableSectionindented()Same as indented(true)indented(boolean indented) Adds/removes modifier(indented)onToggle(ToggleHandler<ExpandableSection> toggleHandler) that()truncate()Same as truncate(3)truncate(int truncate) Adds modifier(truncate)Methods inherited from class org.patternfly.component.BaseComponent
componentType, 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, addAllMethods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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
-
Field Details
-
DEFAULT_TRUNCATE
public static final int DEFAULT_TRUNCATE- See Also:
-
-
Method Details
-
expandableSection
-
expandableSection
-
attach
- Specified by:
attachin interfaceAttachable
-
addToggle
-
add
-
addContent
-
add
-
indented
Same as indented(true) -
indented
Adds/removes modifier(indented) -
disclosure
Same as disclosure(true) -
disclosure
Adds/removes the disclosure modifiers -
truncate
Same as truncate(3) -
truncate
Adds modifier(truncate) -
detachedFrom
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,ExpandableSection>
-
onToggle
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLDivElement,ExpandableSection>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLDivElement,ExpandableSection>
-
content
-