QPopupProxy should be used when you need either a QMenu (on bigger screens) or a QDialog (on smaller screens) to be displayed. It acts as a proxy which picks either of the two components to use. QPopupProxy also handles context-menus.
/* * No installation step is necessary. * It gets installed by default by @quasar/app v2+. */
Use your browsers development tools to toggle the device between mobile or desktop (with browser refresh after each change) or, physically resize your browser’s window to watch the QPopupProxy component switch between either a QMenu or a QDialog before clicking/tapping on its container. The default breakpoint is set at 450px.
On the example below, click on the icon in the input.
QPopupProxy treats some components (QDate, QTime, QCarousel and QColor) as special ones and forces
cover: true and
maxHeight: '99vh' on them. If you don’t want this behavior just place a
div as the first level child of QPopupProxy.