No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Windowing using Multiple Dialogs Containing qLayout

    Help
    2
    4
    515
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ian last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        @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.

        I 1 Reply Last reply Reply Quote 0
        • I
          ian @metalsadman last edited by

          @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?

          1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman last edited by metalsadman

            @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’.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post