Topic: How to check if a accordion is collapsed or not?

yeisonvelez11 free asked 5 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


Damian Gemza staff answered 5 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


Arkadiusz Idzikowski staff answered 5 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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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
Tags