Interface Accordion
-
- All Superinterfaces:
Component,ComponentExporter,Container,ContainerExporter
@ConsumerType public interface Accordion extends Container
Defines theAccordionSling Model used for the/apps/core/wcm/components/accordioncomponent.- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPN_DESIGN_HEADING_ELEMENTName of the configuration policy property that stores the default value for the accordion heading's HTML element.-
Fields inherited from interface com.adobe.cq.wcm.core.components.models.Container
PN_BACKGROUND_COLOR, PN_BACKGROUND_COLOR_ENABLED, PN_BACKGROUND_COLOR_SWATCHES_ONLY, PN_BACKGROUND_IMAGE_ENABLED, PN_BACKGROUND_IMAGE_REFERENCE
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String[]getExpandedItems()Returns the items that are expanded by default.default java.lang.StringgetHeadingElement()Returns the HTML element to use for accordion headers.default booleanisSingleExpansion()Indicates whether the accordion forces a single item to be expanded at a time or not.-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getId
-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Container
getBackgroundStyle, getExportedItems, getExportedItemsOrder, getItems
-
-
-
-
Field Detail
-
PN_DESIGN_HEADING_ELEMENT
static final java.lang.String PN_DESIGN_HEADING_ELEMENT
Name of the configuration policy property that stores the default value for the accordion heading's HTML element.- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
- See Also:
getHeadingElement(), Constant Field Values
-
-
Method Detail
-
isSingleExpansion
default boolean isSingleExpansion()
Indicates whether the accordion forces a single item to be expanded at a time or not.- Returns:
trueif the accordion forces a single item to be expanded at a time;falseotherwise- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
getExpandedItems
default java.lang.String[] getExpandedItems()
Returns the items that are expanded by default.- Returns:
- the expanded items
- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
getHeadingElement
default java.lang.String getHeadingElement()
Returns the HTML element to use for accordion headers.- Returns:
- the HTML element to use for accordion headers
- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
-