Class Accordion
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Accordion>
-
- org.patternfly.component.accordion.Accordion
-
- All Implemented Interfaces:
Attachable,Container<HTMLElement,Accordion>,Finder<HTMLElement>,HasElement<HTMLElement,Accordion>,HasHTMLElement<HTMLElement,Accordion>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Accordion>,Component,Modifiers.Bordered<HTMLElement,Accordion>
public class Accordion extends BaseComponent<HTMLElement,Accordion> implements Modifiers.Bordered<HTMLElement,Accordion>, Attachable
An accordion is an interactive container that expands and collapses to hide or reveal nested content. It takes advantage of progressive disclosure to help reduce page scrolling, by allowing users to choose whether they want to show or hide more detailed information as needed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Accordionaccordion()Creates a new Accordion instance backed by a<p> <dl/>.static Accordionaccordion(boolean definitionList)Accordionadd(AccordionItem item)AccordionaddItem(AccordionItem item)voidattach(MutationRecord mutationRecord)voidcollapse(String itemId)voidcollapse(String itemId, boolean fireEvent)voidexpand(String itemId)voidexpand(String itemId, boolean fireEvent)Accordionfixed()Same as fixed(true)Accordionfixed(boolean fixed)Flag to indicate Accordion content is fixedAccordionheadingLevel(int headingLevel)Accordionlarge()Same as large(true)Accordionlarge(boolean large)Adds/removes modifier(large, lg)AccordiononToggle(ToggleHandler<AccordionItem> toggleHandler)AccordionsingleExpand()Same as singleExpand(true)AccordionsingleExpand(boolean singleExpand)Whether only oneAccordionItemcan be expandedAccordionthat()-
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.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
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
-
Methods inherited from interface org.patternfly.style.Modifiers.Bordered
bordered, bordered
-
-
-
-
Method Detail
-
accordion
public static Accordion accordion()
Creates a new Accordion instance backed by a<p> <dl/>.
-
accordion
public static Accordion accordion(boolean definitionList)
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
addItem
public Accordion addItem(AccordionItem item)
-
add
public Accordion add(AccordionItem item)
-
fixed
public Accordion fixed()
Same as fixed(true)
-
fixed
public Accordion fixed(boolean fixed)
Flag to indicate Accordion content is fixed
-
large
public Accordion large()
Same as large(true)
-
large
public Accordion large(boolean large)
Adds/removes modifier(large, lg)
-
singleExpand
public Accordion singleExpand()
Same as singleExpand(true)
-
singleExpand
public Accordion singleExpand(boolean singleExpand)
Whether only oneAccordionItemcan be expanded
-
headingLevel
public Accordion headingLevel(int headingLevel)
-
that
public Accordion that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Accordion>
-
onToggle
public Accordion onToggle(ToggleHandler<AccordionItem> toggleHandler)
-
collapse
public void collapse(String itemId)
-
collapse
public void collapse(String itemId, boolean fireEvent)
-
expand
public void expand(String itemId)
-
expand
public void expand(String itemId, boolean fireEvent)
-
-