• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

32
Views
Set active for adding step by step in vuejs?

I want it to default to : Additional Info , instead of : Personal details

I have searched, but can't find any documentation for this. Please help me. Thanks.

https://jsfiddle.net/bt5dhqtf/98/

<div id="app">
<div>
        <form-wizard @on-complete="onComplete" 
                      shape="square"
                      color="#3498db">
            <tab-content title="Personal details"
                         icon="ti-user">
              My first tab content
            </tab-content>
            <tab-content title="Additional Info"
                         icon="ti-settings">
              My second tab content
            </tab-content>
            <tab-content title="Last step"
                         icon="ti-check">
              Yuhuuu! This seems pretty damn simple
            </tab-content>
        </form-wizard>
 </div>
</div>

//

Vue.use(VueFormWizard)
new Vue({
 el: '#app',
 methods: {
  onComplete: function(){
      alert('Yay. Done!');
   }
  }
})

enter image description here

4 months ago ·

Santiago Trujillo

1 answers
Answer question

0

You can use the start-index prop for the default selected tab

:start-index="1"

check the below example

https://jsfiddle.net/1z9mfp7y/1/

4 months ago · Santiago Trujillo Report
Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.