How to set max count for Accordion component container items | Community
Skip to main content
Level 5
June 13, 2023
Solved

How to set max count for Accordion component container items

  • June 13, 2023
  • 2 replies
  • 1676 views

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.
Best answer by aravindS

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

 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 13, 2023

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
rawvarun
Community Advisor
Community Advisor
June 13, 2023
aravindSAuthor
Level 5
June 14, 2023

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

 

aravindSAuthorAccepted solution
Level 5
June 14, 2023

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