ng2-semantic-ui
ng2-semantic-ui copied to clipboard
Programmatically Close Accordion
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
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.