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

    Quasar Stepper: go back to step by clicking on the stepper title

    Help
    2
    3
    358
    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
      jwdobken last edited by jwdobken

      Along with the navigation using the Continue and Back buttons, I like to be able to go back and forth by selecting the headers of the steps.

      So, naively I included a click event that would set the currentStep to the specific step:

        <q-stepper v-model="currentStep">
          <q-step name="first"
                   title="First step"
                   @click="currentStep = 'first'">
            ...
            <q-stepper-navigation>
              <q-btn
                color="primary"
                @click="currentStep = 'second'"
                label="Go to Step 2"
              />
            </q-stepper-navigation>
          </q-step>
      
          <q-step name="second"
                   title="Second step"
                   @click="currentStep = 'second'">
            ...
            <q-stepper-navigation>
              <q-btn
                color="primary"
                @click="currentStep = 'first'"
                label="Go Back"
              />
            </q-stepper-navigation>
          </q-step>
        </q-stepper>
      

      But when clicking on the Continue button, the step itself will be clicked too setting the currentStep back to it’s previous value. So the user will stay on this step.

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

        Did you try using the header-nav prop?

        Scott

        1 Reply Last reply Reply Quote 0
        • J
          jwdobken last edited by

          that works!

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