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

    Generic dialog with an event

    Framework
    2
    3
    304
    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.
    • A
      amoss last edited by

      Hi

      I have a dialog with a fixed title, content and event when pressing the ok button. It is placed as q-dialog in the template and in script as method of each vue file.

      How is it possible to make it generic so it will get the content + event (or null if none), will show that content in the dialog and run the event no matter where it was called from?

      I made a generic method/property that I call from different pages but is there an example where a template is also involved?

      Thanks

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

        @amoss try the plugin version https://quasar.dev/quasar-plugins/dialog#Introduction, as for global states, learn about vuex.

        1 Reply Last reply Reply Quote 0
        • A
          amoss last edited by

          Thanks! I will try it

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