Support for multiple browser windows #15750
Unanswered
florianlink
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
We are using Quasar as frontend UI for our medical imaging applications. We want to support multiple windows/screens by opening secondary browser windows from within our Quasar SPA and place the windows on different screens using e.g. https://developer.chrome.com/articles/multi-screen-window-placement/
This already works fine with Vue/Quasar using the window.open("", "someExtraWindow", windowFeatures)
and using a Vue 3 Teleport component to teleport Quasar UI components from the main Quasar SPA to the document.body of the new window.
Problems
The following problems arise when teleporting Quasar UIs to the other window's document.body:
Digging deeper, it seams that the problem drills down to the usage of use-portal and global-nodes, which always use the document.body of the main window:
https://github.com/quasarframework/quasar/search?q=use-portal
https://github.com/quasarframework/quasar/search?q=global-nodes
Feature request
Our feature request would be to support:
Unfortunately I have no good idea how use-portal and global-nodes would have to be changed to support different body elements for different components.
I would be interested in possible solutions and would also be willing to develop a PR.
Why?
We need this design because our SPA is stateful and has a websocket connection to the backend, so we can't load a full own SPA on the extra window, we need to share the JavaScript context and the full pinia state + websocket of the main SPA with the extra windows.
Beta Was this translation helpful? Give feedback.
All reactions