bug: Toggle IonAccordion from Controller
See original GitHub issueFeature Request
Ionic version:
[ ] 4.x [ ] 5.x [X] 6.x
Describe the Feature Request
I would like to toggle a specific Accordion from my Controller.
Describe Preferred Solution
In Angular:
@ViewChild('accordion')
accordion: IonAccordion;
someMethode() {
this.accordion.toggle();
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Bug in Accordion and toggle widget - WordPress.org
I need you help. I am using free version. I already read and followed this new updates but not fixed the accordion widget...
Read more >Uib accordion toggle issue - angularjs - Stack Overflow
I am using uibAccordion where the toggling is not happening properly, If I click 1st repeated element all others also opening. Below is...
Read more >toggle accordion · Issue #56 · ember-bootstrap/ember-bootstrap ...
is there a property to toggle the accordion panel? forgive me, this is all new; using the example I can get them all...
Read more >Collapse - Bootstrap
The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific...
Read more >Accessible Accordion - examples and best practices - Aditus
Accordions are a common UX pattern that can help reduce the amount of information presented to users. You might recognise this pattern by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay understood 😊
In order to do this,
ion-accordion
would have to set the value ofion-accordion-group
automatically which is a practice we moved away from with v5 because it caused a lot of synchronization issues (for example, we did this with radio: https://github.com/ionic-team/ionic-framework/blob/master/BREAKING.md#radio)Glad setting the
value
property works. Also sorry I misspoke, accordion group does not havengModel
support since it’s not a form element.