question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: Ability to get current state of accordion

See original GitHub issue

Feature 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

Screenshot 2021-07-08 at 9 55 43 PM

Related Code

  searchPlayer() { this.accordion.toggle } for example

Additional Context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
farisfaisalthenacommented, Jul 8, 2021

Yeah now it works dint know i could do this.accordion.value = undefined; thanks!

0reactions
ionitron-bot[bot]commented, Aug 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found