glennflanagan / react-collapsible

React component to wrap content in Collapsible element with trigger to open and close.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trigger collapse and uncollapse programmatically

anir1234 opened this issue · comments

Is it possible to initiate trigger programmatically using react-collapsible , without actually clicking the element.
Basically i need to call the trigger using a button which will collapse the element if it is uncollapsed and vice -versa.