Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

MenuComponent


I'm use menu,I hope when the <a ></a> is clicked and before the menu is shown ,could add some menu-item

<a
class="btn btn-sm btn-light btn-active-light-primary"
data-kt-menu-trigger="click"
data-kt-menu-placement="bottom-end"
data-kt-menu-flip="top-end"
id="www"
>&egrave;&frac34;&#147;&aring;&#135;&ordm;
<span class="svg-icon svg-icon-5 m-0">
<inline-svg
:src="getAssetPath("media/icons/duotune/arrows/arr072.svg")"
/>
</span>
</a>
<!--begin::Menu-->
<div
class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 menu-state-bg-light-primary fw-semobold fs-7 w-125px py-4"
data-kt-menu="true"
>
<template v-for="i in state.taskLogData">
<div class="menu-item px-3">
<button
@click="actions.handleLog(i)"
class="btn btn-outline-info">
{{ i.time }}
</button>
</div>
</template>
<!--begin::Menu item-->

<!--end::Menu item-->
</div>
<!--end::Menu-->



Below is the javascript code in vue
but it now worked

const menu = MenuComponent.createInsance("#www")
if (!menu){
return
}
menu.on("kt.menu.dropdown.show", function() {
console.log("menu dropdown show event fired");
});


Text formatting options
Submit

Replies (13)


That's a cool menu implementation! I've been working on something similar and I'm wondering about performance implications when dynamically adding many items. I had a situation recently dealing with a large dataset that felt a bit like dealing with crazy cattle, trying to keep everything organized. I'll definitely keep this approach in mind for smaller, more manageable menus though. Thanks for sharing!



Time management and inventive cooking are brilliantly combined at papa's freezeria. Every playthrough offers something fresh and unique!



In the game of Red Light Green Light, players dost encounter the fervor of racing forth to claim triumph, as they artfully balance the exhilaration of swift motion with the tense stillness of halting, all whilst putting their agility and keen ears to the test.



escape road 2 features a dynamic difficulty system, adjusting challenges based on player performance to provide a suitable experience for everyone.

Thinking back, perhaps it was cookie clicker that taught me the first lesson about patience and the power of accumulation.



To achieve success in Drive Mad, players must master speed control and precision driving, as even the slightest miscalculation can lead to crashes and setbacks in their quest to conquer challenging tracks.



This is an entertaining game where you can experience the thrill of being a boss, pitting the Queen against an ever-strengthening hero. It's a delightful game to enjoy during your leisure time.
the dark queen of mortholme



Escape the chaos of the city in escape road city 2! Fast-paced action, thrilling chases, and non-stop excitement await you. Can you make it out in time?



@retro bowl college Thank you both. Before reading this article, I was experiencing the same issue and had no idea how to resolve it.



Online Seed Banks: Many online seed banks https://weedseedsoff.com offer a wide variety of cannabis seeds at different price points. Some even have special sections dedicated to budget-friendly options. Look for seed banks with good reviews and a solid reputation in the cannabis community. Some well-known seed banks often run promotions or discounts, making it easier to snag high-quality seeds at a fraction of the cost.



@escape road Thank you both. I was having the same problem and didn't know how to solve it until I read this article.



@bloxd io Thank you for your code



Hi,

Thank you for reaching out to us.

You need to add your id on the element with an attribute data-kt-menu="true", also by default we have a global initialization if you want to prevent a global initialization for this element you can remove attribute data-kt-menu="true" and keep your id only.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Text formatting options
Submit