Trigger collapse and uncollapse programmatically
anir1234 opened this issue · comments
anir1234 commented
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.
Glenn Flanagan commented
Yep this is possible by managing the open
prop.
https://github.com/glennflanagan/react-collapsible#open--bool--default-false