-
Notifications
You must be signed in to change notification settings - Fork 437
Roadmap #1
Comments
Nice plugin. Is there a way to trigger openMenu externally? |
Thanks for the warm words! I'm thinking about it now, but it doesn't seems to be an easy solution. You need to render menu first to get a reference to it's instance. Since you have a ref, you can call |
Yes this.refs.{menuid}.openMenu() works fine. thanks A toggleMenu function is useful for open/close the menu from an external button toggleMenu:function () {
if (this.left) {
this.closeMenu();
} else {
this.openMenu();
}
}, |
@Kureev Can you put up a small example for this? I need to trigger openMenu externally. Not sure how to handle the ref thing. |
Sure, I'll try to make an example asap, but I need some time to figure out about #4 |
Thanks. I would need #4 to be solved anyways. I will also look into the codebase in some time. |
@chirag04 landed in this thread to look for info for triggering the openMenu from a button. Not sure if this is what you want, but just in case here is a gist: https://gist.github.com/swennemans/fdaa321fcc02db96de96 Now, lets see how to transition to the next route with navigatorIOS 👍 |
@swennemans Awesome thanks. I would prefer an api exposed by the component itself for this though. |
property to open menu from the right side will be super usefull |
|
@liubko Ah, I see:
|
menuPosition
property in cases of using menu on the right side (will be opened by slide right-to-left)The text was updated successfully, but these errors were encountered: