Close Popup Directive

This directive is a helper when dealing with QDialog and QMenu components. When attached to a DOM element or component then that component will close the QDialog or QMenu (whichever is first parent) when clicked/tapped.

Installation


// quasar.conf.js

return {
  framework: {
    directives: [
      'ClosePopup'
    ]
  }
}

Usage

With a QMenu



With a QDialog



API