Closed creaturerigger closed 8 years ago
I went to console and found menu's classes and attributes then i composed this and it works well eventhough i still don't have any idea if there is a menuitem.onclick function.:
$('div.ax5-ui-menu').find('.ax-menu-item, .ax-menu-item-html').on('click', function () { var index = $(this).attr('data-menu-item-index'); switch(index){ case "0": do something; break; case "1": do something else; break; . . . . default: break; } });
duplicated. https://github.com/ax5ui/ax5ui-kernel/issues
I am trying to find how to create item on click function out but i could not what am i missing? Can you please give an example how to do it? I tried something like this: