var NS = "cmp";
var IS = "accordion";
var selectors = {
self: "[data-" + NS + '-was="' + IS + '"]'
};
<div data-sly-use.accordion="com.adobe.cq.wcm.core.components.models.Accordion"
data-panelcontainer="${wcmmode.edit && 'accordion'}"
id="${accordion.id}"
class="cmp-accordion"
data-cmp-is="accordion"
data-cmp-data-layer="${accordion.data.json}"
data-cmp-single-expansion="${accordion.singleExpansion}"
data-placeholder-text="${wcmmode.edit && 'Please drag Accordion item components here 123' @ i18n}">
Solved! Go to Solution.
Views
Replies
Total Likes
Just follow as mentioned in screenshot. This accordion is using the core accordion.
accordion/.content.xml
accordion/clientlib/.content.xml
You need to add the js on clientlib and define a category and override the existing clientlib. The existing clientlib is available here https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc...
also you can find it on your crx/de
/apps/core/wcm/components/accordion/v1/accordion/clientlibs
Views
Replies
Total Likes
Just follow as mentioned in screenshot. This accordion is using the core accordion.
accordion/.content.xml
accordion/clientlib/.content.xml
You need to add the js on clientlib and define a category and override the existing clientlib. The existing clientlib is available here https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc...
also you can find it on your crx/de
/apps/core/wcm/components/accordion/v1/accordion/clientlibs
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies