ng2-semantic-ui icon indicating copy to clipboard operation
ng2-semantic-ui copied to clipboard

Programmatically Close Accordion

Open dolebrant opened this issue 6 years ago • 1 comments

Bug description:

I would like to know if there is documented way to "close" and "open" the accordion. This would basically require applying the same methods that are used in the click scenarios. But I think that this is important that this be documented from a user perspective as many people have inquired.

Version of Angular, ng2-semantic-ui, and Semantic UI:

Angular: 4.3.3 + ng2-semantic-ui: current Semantic UI: current

dolebrant avatar Mar 20 '18 10:03 dolebrant

You're able to control the accordion by binding a variable to the isOpen property of each panel. If you use 2-way binding ([(isOpen)]) you're able to always use panelControlVariable = true / false to open / close it.

When you say it's important it be documented - do you mean it would be good to include an example? As the isOpen property is currently documented.

edcarroll avatar Mar 20 '18 20:03 edcarroll