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
Modifier and TypeMethodDescriptionstatic AccordionCreates a new Accordion instance backed by a<p> <dl/>.static Accordionaccordion(boolean definitionList) add(AccordionItem item) addItem(AccordionItem item) voidattach(MutationRecord mutationRecord) voidvoidvoidvoidfixed()Same as fixed(true)fixed(boolean fixed) Flag to indicate Accordion content is fixedheadingLevel(int headingLevel) large()Same as large(true)large(boolean large) Adds/removes modifier(large, lg)onToggle(ToggleHandler<AccordionItem> toggleHandler) Same as singleExpand(true)singleExpand(boolean singleExpand) Whether only oneAccordionItemcan be expandedthat()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.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.Bordered
bordered, bordered
-
Method Details
-
accordion
Creates a new Accordion instance backed by a<p> <dl/>. -
accordion
-
attach
- Specified by:
attachin interfaceAttachable
-
addItem
-
add
-
fixed
Same as fixed(true) -
fixed
Flag to indicate Accordion content is fixed -
large
Same as large(true) -
large
Adds/removes modifier(large, lg) -
singleExpand
Same as singleExpand(true) -
singleExpand
Whether only oneAccordionItemcan be expanded -
headingLevel
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Accordion>
-
onToggle
-
collapse
-
collapse
-
expand
-
expand
-