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

auto close #5

Open
Fil6718 opened this issue Oct 9, 2016 · 2 comments
Open

auto close #5

Fil6718 opened this issue Oct 9, 2016 · 2 comments

Comments

@Fil6718
Copy link

Fil6718 commented Oct 9, 2016

I love your menu. But, i would like to auto-close when i click on a icon. I try with the event onclick but it didn't work.
An idear or a way to search ?

@callmenick
Copy link
Owner

closeMenu() function should do it, but you'd have to register the callback somewhere. This feature is in the pipeline, see issue #1. Will try to get around to it.

@Fil6718
Copy link
Author

Fil6718 commented Oct 18, 2016

Yes but i didn't arrive to make it run...
I try

<li` class="c-circle-menu__item">
<a href="#contact" class="c-circle-menu__link" onClick="events.emit('closeMenu()');">
<i class="fa fa-envelope-o" aria-hidden="true"></i>
<span class="menu_items">CONTACT</span>
</a>
</li>

but nothing....

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