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

Using other JS libs to handle menus, is this possible? #186

Closed
pmlopes opened this issue Sep 1, 2013 · 2 comments
Closed

Using other JS libs to handle menus, is this possible? #186

pmlopes opened this issue Sep 1, 2013 · 2 comments

Comments

@pmlopes
Copy link

pmlopes commented Sep 1, 2013

I would like to use other JS library with pure than yahoo, not that i am against Yahoo but i am already using Dojo Toolkit with my project and would prefer to keep it with just one lib.

Is there any information on what does the Y.Menu code does under the wood so one can replicate with their favourite library?

@tilomitra
Copy link
Contributor

@pmlopes

Short answer: Yes. The Y.Menu source code lives here: https://github.com/smugmug/yui-gallery/tree/master/src/sm-menu

Long answer: I recommend holding out on this until 0.4.0, because we are significantly refactoring menu for that release Along with refactoring the CSS, we're going to make the JS a lot simpler so that it just toggles classnames. We also plan on having documentation on the site, showing examples of how to use vanilla JS, jQuery, or YUI with the menu. When we do this, we'll also highlight the class names that need to be toggled to achieve specific effects.

Here's a pull request with the new Menu CSS, but I'm still working on the dropdown stuff.

@tilomitra
Copy link
Contributor

Closing this out. Feel free to reopen if you have any other questions.

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

No branches or pull requests

2 participants