I have the next code:
<button class="btn btn-icon btn-color-gray-400 btn-active-color-primary justify-content-end"
data-kt-menu-trigger="click" data-kt-menu-placement="bottom" data-kt-menu-target="#goalsModal">....</button>
<div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg-light-primary fw-bold w-xl-450px"
id="goalsModal" data-kt-menu="true">....</div>
addGoalElem.addEventListener("click", () => {
const instance = KTMenu.getInstance(this.#modal);
instance.show(instance.getElement());
});
Hi,
Could you please clarify your question? Do you need one menu but 2 triggers(visible buttons) and upon clicking one of the buttons the menu should be displayed attached to the clicked button?
Regards.
I found a solution, thanks anyways.
Hi ,
Great! All the best with your product. If you need any further help please do let us know.
Regards.