Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Roadmap #1

Closed
7 tasks done
Kureev opened this issue Apr 6, 2015 · 13 comments
Closed
7 tasks done

Roadmap #1

Kureev opened this issue Apr 6, 2015 · 13 comments

Comments

@Kureev
Copy link
Owner

Kureev commented Apr 6, 2015

  • Make a working alpha version
  • Make an example and description for alpha
  • Expose menu API for menu view
  • Support different animations
  • Toggle menu functionality (thanks, @dvcrn)
  • Extend and describe side menu API
  • Create menuPosition property in cases of using menu on the right side (will be opened by slide right-to-left)
@adriansdev
Copy link

Nice plugin. Is there a way to trigger openMenu externally?

@Kureev
Copy link
Owner Author

Kureev commented Apr 9, 2015

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 openMenu. I'll try to make an example for that tomorrow.

@adriansdev
Copy link

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();
  }
},

@chirag04
Copy link
Contributor

@Kureev Can you put up a small example for this? I need to trigger openMenu externally.

Not sure how to handle the ref thing.

@Kureev
Copy link
Owner Author

Kureev commented Apr 21, 2015

Sure, I'll try to make an example asap, but I need some time to figure out about #4

@chirag04
Copy link
Contributor

Thanks. I would need #4 to be solved anyways. I will also look into the codebase in some time.

@swennemans
Copy link

@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 👍

@chirag04
Copy link
Contributor

chirag04 commented May 1, 2015

@swennemans Awesome thanks. I would prefer an api exposed by the component itself for this though.

@Kureev
Copy link
Owner Author

Kureev commented May 11, 2015

@chirag04 @adrian-social-prod open method has been exposed in 0.3.0 (thanks to @dvcrn)

@liubko
Copy link
Contributor

liubko commented May 17, 2015

property to open menu from the right side will be super usefull

@Kureev
Copy link
Owner Author

Kureev commented May 17, 2015

@liubko you mean API to toggle menu? It's already implemented. See #15

@liubko
Copy link
Contributor

liubko commented May 17, 2015

  1. @Kureev no, I mean: ability to position drawer at the right side of the screen
  2. what do you think about adding dragElement like here: http://jakiestfu.github.io/Snap.js/demo/apps/dragElement.html
    because currently SideMenu's responder handles all drag events on the screen, and it breaks my apps functionality.

@Kureev
Copy link
Owner Author

Kureev commented May 17, 2015

@liubko Ah, I see:

  • Yes, it's in the roadmap. Unfortunately, I'm busy last month to implement something new, but in theory nothing hard.

  • I think it's a really great idea. I think instead of creating additional layer we can add prop with ref to handler:

    <SideMenu handler={'handler'} menu={<Menu/>}>
      <ListView ref='handler' source={source} />
    </SideMenu>

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

No branches or pull requests

5 participants