Introducing CrudHunt:Open-source Full-stack CRUDs for Next.js by KeenThemes
Browse CrudHunt

Listen to menu events to do manual stuff


Hello,

I am using menu for filters and all I need to do is when user close the menu(by clicking out side on page), I have to reset filters options since filters are not applied. So I have to check that in hide event. Could you please guide me how to achieve that?


button
type="button"
class="btn btn-light-primary position-relative me-5"
data-kt-menu-trigger="click"
data-kt-menu-placement="bottom-end"
@data-kt-menu-hide="customFun"
v-on:hide="customFun"
>
Function
</button>
<!--begin::Menu 1-->
<div
class="menu menu-sub menu-sub-dropdown w-300px w-md-325px"
data-kt-menu="true"
@data-kt-menu-trigger-hide="customFun"
v-on:hide="customFun"
>
<!--begin::Header-->
<div class="px-7 py-5">
........................


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)