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
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ExpandableSectionContent content) add
(ExpandableSectionToggle toggle) addContent
(ExpandableSectionContent content) addToggle
(ExpandableSectionToggle toggle) void
attach
(MutationRecord mutationRecord) void
collapse
(boolean fireEvent) content()
detachedFrom
(String detachedFromId) Same as disclosure(true)disclosure
(boolean disclosure) Adds/removes the disclosure modifiersvoid
expand
(boolean fireEvent) static ExpandableSection
static ExpandableSection
indented()
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, 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
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
Methods 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:
attach
in 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:
that
in interfaceTypedBuilder<HTMLDivElement,
ExpandableSection>
-
onToggle
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapse
in interfaceExpandable<HTMLDivElement,
ExpandableSection>
-
expand
public void expand(boolean fireEvent) - Specified by:
expand
in interfaceExpandable<HTMLDivElement,
ExpandableSection>
-
content
-