Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to set max count for Accordion component container items

Avatar

Level 4

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 4

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

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

Level 4

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

aravindS_0-1686714474203.png

 

Avatar

Correct answer by
Level 4

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