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 open open a dialog component from another component with a button click without routing

    Framework
    4
    10
    5985
    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
      Praveen Patare last edited by

      I am using Quasar Framework to create an application. My application requires a dialog window containing some form fields to open when i press a button on another component without changing the uri. Any suggestions ??

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

        Hello @Praveen-Patare

        Please take a look here: https://quasar.dev/quasar-plugins/dialog#Invoking-custom-component

        Let me know if you have any issues. You can contact us on Discord too, and we can answer you faster If we can help you.

        Thank you!

        P 1 Reply Last reply Reply Quote 1
        • P
          Praveen Patare @lucasfernog last edited by

          @lucasfernog I tried using the code used in the document but its giving me an error ‘this.$q.dialog is not a function"’

          1 Reply Last reply Reply Quote 0
          • P
            Praveen Patare last edited by

            I am using the QDialog component and not the QDialog plugin

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

              @Praveen-Patare https://quasar.dev/vue-components/dialog#Introduction, i’ve made a sample https://0ybb3.sse.codesandbox.io/#/dialog-sample, source https://codesandbox.io/s/0ybb3.

              P P 2 Replies Last reply Reply Quote 0
              • lucasfernog
                lucasfernog last edited by

                @Praveen-Patare If you want to use this.$q.dialog, you need to install the Dialog plugin. It is really a nice helper to use your dialogs

                1 Reply Last reply Reply Quote 0
                • P
                  Praveen Patare @metalsadman last edited by

                  @metalsadman Worked like a charm… thank you !!!

                  1 Reply Last reply Reply Quote 1
                  • P
                    philipp @metalsadman last edited by

                    @metalsadman Hi, I just wanted to check out your sample, but it seems to be broken unfortunately… I have the exact same problem, read the documentation, but did not make it work so far. Is it possible to re-upload your sample? Thank you very much! Philipp

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

                      @philipp yeah, i dunno what’s up with codesandbox but it does give 502 intermittently which is a bugger, will try to do it in a codepen sometime.

                      Can you try forking the source, see if it works…

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

                        Hi @metalsadman, thank you for your answer! I finally made it work by patiently analyzing your code. The dialog appears after clicking a button in a parent component. 🙂 I already tried to fork the source, but got the same error 500 unfortunately… 🤨

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