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.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_TRUNCATE
-
Method Summary
-
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, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
-
-
-
Field Detail
-
DEFAULT_TRUNCATE
public static final int DEFAULT_TRUNCATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
expandableSection
public static ExpandableSection expandableSection()
-
expandableSection
public static ExpandableSection expandableSection(String id)
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
addToggle
public ExpandableSection addToggle(ExpandableSectionToggle toggle)
-
add
public ExpandableSection add(ExpandableSectionToggle toggle)
-
addContent
public ExpandableSection addContent(ExpandableSectionContent content)
-
add
public ExpandableSection add(ExpandableSectionContent content)
-
indented
public ExpandableSection indented()
Same as indented(true)
-
indented
public ExpandableSection indented(boolean indented)
Adds/removes modifier(indented)
-
disclosure
public ExpandableSection disclosure()
Same as disclosure(true)
-
disclosure
public ExpandableSection disclosure(boolean disclosure)
Adds/removes the disclosure modifiers
-
truncate
public ExpandableSection truncate()
Same as truncate(3)
-
truncate
public ExpandableSection truncate(int truncate)
Adds modifier(truncate)
-
detachedFrom
public ExpandableSection detachedFrom(String detachedFromId)
-
that
public ExpandableSection that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,ExpandableSection>
-
onToggle
public ExpandableSection onToggle(ToggleHandler<ExpandableSection> toggleHandler)
-
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
public ExpandableSectionContent content()
-
-