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
public class ExpandableSection extends BaseComponent<HTMLDivElement,ExpandableSection> implements Attachable
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, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
-
-
-
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
-
that
public ExpandableSection that()
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,ExpandableSection>
-
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)
-
onToggle
public ExpandableSection onToggle(ToggleHandler<ExpandableSection> onToggle)
-
detachedFrom
public ExpandableSection detachedFrom(String detachedFromId)
-
toggle
public void toggle()
-
toggle
public void toggle(boolean fireEvent)
-
collapse
public void collapse()
-
collapse
public void collapse(boolean fireEvent)
-
expand
public void expand()
-
expand
public void expand(boolean fireEvent)
-
expanded
public boolean expanded()
-
content
public ExpandableSectionContent content()
-
-