CSS-Circle-Menu icon indicating copy to clipboard operation
CSS-Circle-Menu copied to clipboard

auto close

Open Fil6718 opened this issue 8 years ago • 2 comments

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 ?

Fil6718 avatar Oct 09 '16 19:10 Fil6718

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.

callmenick avatar Oct 18 '16 01:10 callmenick

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....

Fil6718 avatar Oct 18 '16 10:10 Fil6718