Topic: How to check if a accordion is collapsed or not?
yeisonvelez11 asked 6 years ago
I need to check if a is collapsed or not?
for example:
<mdb-accordion [multiple]="true" *ngFor="let dependencia of aDependencias" class="acordion_dependencia position-relative">
<mdb-accordion-item [collapsed]="false">
<mdb-accordion-item-head >
{{isCollapsed}}
thanks
Arkadiusz Idzikowski staff answered 6 years ago
Hello,
Unfortunately, currently there are no events that you can listen to in mdb-accordion. As a workaround you can set a variable to the [collapsed] input and use it in your component ts code. I'll add this to our nice-to-have list.
Damian Gemza staff answered 6 years ago
Dear @yeisonvelez11
The feature to listen on animation state change will be added with the next release of MDB Angular.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.1
- Device: WEB
- Browser: chrome
- OS: windows 10
- Provided sample code: No
- Provided link: No