Windowing using Multiple Dialogs Containing qLayout
-
I want to open multiple dialogs containing qLayout as a windowing system, but I don’t know how many windows the user will wants to open. Therefore I would need to create the dialogs of the fly at runtime. Does anyone know the best way to do this?
-
@ian check the docs for containerized dialog https://v1.quasar-framework.org/vue-components/dialog#Example--With-containerized-QLayout and inception (dialog w/in a dialog) https://v1.quasar-framework.org/vue-components/dialog#Example--Inception. I would say make a custom dialog component and render it whenever a user does an event, generate unique refs for each created dialog so you can do something with it. but i don’t know if this is what you want coz dialog will be on top of each other, as that is their normal behavior.
-
@metalsadman these solutions assume that you know how many dialog you will have. You need to declare them in the template. How would you dialogs?
-
@ian 2nd sentence bro. anyway here is my trial implementation using the examples from quasar docs…
https://codesandbox.io/s/jnl47vy765 click -> home -> Inception Tab -> click ‘Unli’ button -> inside dialog click ‘Add Another’.