Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to set max count for Accordion component container items

Avatar

Level 6

I have extended the accordion core component, requirement is to set the limit of 20 items for the accordion, how to set the limit for the items.

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 6

Found the way, we need to add the granite class to set the max count and configure same in design dialog. then need to create a client libs and js for count validation.

aravindS_0-1686744041979.png

aravindS_1-1686744110137.png

This will work, thanks

 

View solution in original post

4 Replies

Avatar

Community Advisor and Adobe Champion

This is not an out-of-the-box behavior, you would have to overlay and update the behavior, here is a great article explaining how this part works: https://aemlab.blogspot.com/2022/09/aemaacs-core-components-children-editor.html



Esteban Bustamante

Avatar

Community Advisor

You need to customize the accordion core component to set a limit of 20.

Refer: https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wc...

 

Avatar

Level 6

I already extended the ootb and added the dialog fields as well.

aravindS_0-1686714474203.png

 

Avatar

Correct answer by
Level 6

Found the way, we need to add the granite class to set the max count and configure same in design dialog. then need to create a client libs and js for count validation.

aravindS_0-1686744041979.png

aravindS_1-1686744110137.png

This will work, thanks