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

    How to use modal in different pages?

    Help
    2
    2
    131
    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.
    • P
      Pablo74 last edited by

      I have some background in app development although I am still NOT an expert. I would like to write my Quasar app containing independent pages as Vue components (I know how to do it) with ability to display q-dialog with some content. There will be more than one dialog.

      The problem is: I don’t know how to use the same q-dialog (with the same content) in different pages.

      Thanks,
      Pablo

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Create your own component wrapping QDialog (with all the things you need, as you need them, including how content is injected or used) and use that component wherever you need it with the components option of Vue. https://012.vuejs.org/api/options.html#components

        Scott

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