Interface Accordion
-
- All Superinterfaces:
Component
,ComponentExporter
,Container
,ContainerExporter
@ConsumerType public interface Accordion extends Container
Defines theAccordion
Sling Model used for the/apps/core/wcm/components/accordion
component.- Since:
- com.adobe.cq.wcm.core.components.models 12.8.0
-
-
Field Summary
Fields Modifier and Type Field Description static 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.-
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.String
getHeadingElement()
Returns the HTML element to use for accordion headers.default boolean
isSingleExpansion()
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
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:
true
if the accordion forces a single item to be expanded at a time;false
otherwise- 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
-
-