Interface Accordion

All Superinterfaces:
Component, ComponentExporter, Container, ContainerExporter, PanelContainer

@ConsumerType public interface Accordion extends PanelContainer
Defines the Accordion Sling Model used for the /apps/core/wcm/components/accordion component.
Since:
com.adobe.cq.wcm.core.components.models 12.8.0
  • Field Details

    • PN_DESIGN_HEADING_ELEMENT

      static final 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:
  • Method Details

    • 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 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 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