Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to toggle the sidebar component with a state parameter #26

Open
michaelryancaputo opened this issue Jul 31, 2015 · 1 comment

Comments

@michaelryancaputo
Copy link

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.

@jessy1092
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants