Class Accordion
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,Accordion>
org.patternfly.component.accordion.Accordion
- All Implemented Interfaces:
Iterable<AccordionItem>,Attachable,ElementAttributeMethods<HTMLElement,,Accordion> ElementClassListMethods<HTMLElement,,Accordion> ElementConsumerMethods<HTMLElement,,Accordion> ElementContainerMethods<HTMLElement,,Accordion> ElementEventMethods<HTMLElement,,Accordion> ElementIdMethods<HTMLElement,,Accordion> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,Accordion> HTMLElementDataMethods<HTMLElement,,Accordion> HTMLElementStyleMethods<HTMLElement,,Accordion> HTMLElementVisibilityMethods<HTMLElement,,Accordion> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Accordion> Component,HasItems<HTMLElement,,Accordion, AccordionItem> org.patternfly.style.Modifiers.Bordered<HTMLElement,Accordion>
public class Accordion
extends BaseComponent<HTMLElement,Accordion>
implements Attachable, org.patternfly.style.Modifiers.Bordered<HTMLElement,Accordion>, HasItems<HTMLElement,Accordion,AccordionItem>
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccordionCreates a new Accordion instance backed by a<dl/>.static Accordionaccordion(AccordionType type) add(AccordionItem item) voidattach(MutationRecord mutationRecord) voidclear()voidvoidbooleanvoidvoidfixed()Same as fixed(true)fixed(boolean fixed) Flag to indicate Accordion content is fixedheadingLevel(int headingLevel) iconPosition(IconPosition iconPosition) booleanisEmpty()iterator()large()Same as large(true)large(boolean large) Adds/removes modifier(large, lg)onToggle(org.patternfly.handler.ToggleHandler<AccordionItem> toggleHandler) Same as singleExpand(true)singleExpand(boolean singleExpand) Whether only oneAccordionItemcan be expandedintsize()that()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.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.style.Modifiers.Bordered
bordered, bordered
-
Method Details
-
accordion
Creates a new Accordion instance backed by a<dl/>. -
accordion
-
attach
- Specified by:
attachin interfaceAttachable
-
add
- Specified by:
addin interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-
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
-
iconPosition
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Accordion>
-
onToggle
-
collapse
-
collapse
-
expand
-
expand
-
iterator
- Specified by:
iteratorin interfaceIterable<AccordionItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement,Accordion, AccordionItem>
-