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

    Disable entire form (Quasar Beta v1)

    Help
    form prop
    3
    5
    1346
    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.
    • J
      jriemer last edited by

      How can I disable all elements in a form?
      disable is no prop on q-form; wrapping with q-field would work but destroys layout (also indicated in docs to not wrap q-input/q-select.
      thx
      jr

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

        Every form component in Quasar has a disable prop. Use that.

        https://codepen.io/smolinari/pen/pmGpJO

        Scott

        1 Reply Last reply Reply Quote 1
        • J
          jriemer last edited by

          Thanks Scott,
          I know, I wanted to avoid adding :diable props for each form component, but not a big problem, just wanted to know if I overlook anything here.
          thx
          jr

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

            Yeah, well. For the record, all Quasar components are self-sustained/ self-contained, meaning you won’t see any “cross component” communication or prop swapping or whatever else you might think of that could happen between components. It’s up to you to “wire up” components as you see fit.

            Scott

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

              @jriemer welp, you could use inner loading component https://quasar.dev/vue-components/inner-loading#Introduction to disable a part of your form.
              example https://codepen.io/metalsadman/pen/QRoKoz. you could use a spinner or just choose not to show one, by giving it a size prop of 0px.

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