How to set max count for Accordion component container items | Community
Skip to main content
Level 5
Jun 13, 2023 1:53 PM UTC
Solved

How to set max count for Accordion component container items

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aravindSAccepted solution
Level 5
Jun 14, 2023 12:02 PM UTC

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.

This will work, thanks

 

4 replies

rawvarun
New Participant
Jun 13, 2023 11:23 PM UTC
aravindSAuthor
Level 5
Jun 14, 2023 3:48 AM UTC

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

 

Translate
aravindSAuthorAccepted solution
Level 5
Jun 14, 2023 12:02 PM UTC

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.

This will work, thanks

 

Translate
EstebanBustamante
New Participant
Jun 13, 2023 2:54 PM UTC

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

Translate
Esteban Bustamante