feat: Ability to get current state of accordion
See original GitHub issueFeature Request
Ionic version:
[ ] 4.x [ ] 5.x [X] 6.x
Describe the Feature Request
It would be great if we are able to get the current state of Accordion whether its expanded or not. For example if i use the accordion for the search filters as shown in the image, when i click on “Search Player” i should be able to close the accordion automatically. To do this I would get the current state of accordion in .ts file
Related Code
searchPlayer() { this.accordion.toggle } for example
Additional Context
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
feat: add support for disabled state in Accordion Items #6568
Ability for dev to pass a disabled attribute through the Accordion Item that set's an aria-disabled state on the Accordion Item and a...
Read more >What is the best initial state for an accordion menu?
To answer your question directly, I think typically the best initial state of any menu is closed. Also, whether or not an accordion...
Read more >Getting the current state of a semantics accordion in meteor
open the console and run the line: $('.ui.accordion').currentState(); Also, in general use === (but that doesn't matter here). This isn't a ...
Read more >Accordion Widget - SiteOrigin
The SiteOrigin Accordion widget is a great option if you need to squeeze a lot of content into a small space. Requirements. SiteOrigin...
Read more >Accordion - Wikipedia
Accordions are a family of box-shaped musical instruments of the bellows-driven free-reed aerophone type colloquially referred to as a squeezebox.
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
Yeah now it works dint know i could do
this.accordion.value = undefined;
thanks!Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.