A dynamic accordion component can create a dynamic accordion using JSON data provided by the user. We can use the accordion component, which is a reusable component.
Interface Description
- The title gives the name of the accordion,
- The data gives information about the address,
- The state while opening the HTML page whether it is the open state or the closed state with a true or false declaration.
How to make use of it:
1. Download the accordion.component and use it in your project.
<app-accordian [jsonData]='jsonData'></app-accordian>
2. jsonData is the input of type AccordionInfo.
AccordionInfo { heading:string; data:string; status:boolean; }
See Demo And Download
Official Website(ERS-HCL): Click Here
This superior jQuery/javascript plugin is developed by ERS-HCL. For extra advanced usage, please go to the official website.