Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

based on user selection change the tab index not working #371

Open
@harifiresky

Description

@harifiresky

i am trying to change the tab index based on user selection. i used the below code

this.$refs.lWizard.startIndex = 2;

but no reflection, Any Idea?

my code is :

<form-wizard class="pl-0 pr-0"
ref="lWizard"
color="rgba(var(--vs-primary), 1)"
title="null"
subtitle="null"
@on-complete="onComplete"
back-button-text="Go back!"
next-button-text="Go next!"
finish-button-text="Complete"
>

      <tab-content class=" " v-for="(tab,index) in list"  :key="tab.id">                
       {{tab.title}}

<vs-button class=" " size="large" @click="test();">choose tab

  </form-wizard>

methods: {
onComplete: function(){
alert('Yay. Done!');
},
test: function(){
alert('Yay. !');
this.$refs.lWizard.startIndex = 2;
},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions