react-semantify icon indicating copy to clipboard operation
react-semantify copied to clipboard

Add ability to toggle the sidebar component with a state parameter

Open michaelryancaputo opened this issue 9 years ago • 1 comments

Currently there is no way to toggle a sidebar 'show' and 'hide' after it has been mounted to the view.

I would expect (in the case of the expanding drawer) menus that I would be able to toggle the menu open and closed.

michaelryancaputo avatar Jul 31 '15 18:07 michaelryancaputo

For current version, you can use init prop for transmit your toggle.

<Sidebar init='toggle'></Sidebar> would transfer 'toggle' to sidebar function: $('.ui.sidebar').sidebar('toggle');

ref. https://github.com/jessy1092/react-semantify/blob/develop/src/modules/sidebar.js#L32

Of course, it is not make sense but I have no time on this issue. I would fix other issue first. PR is welcome.

jessy1092 avatar Aug 04 '15 18:08 jessy1092