I have the following code for a v-tabs control:
</v-tabs>
<v-tab
disabled
v-for="tab of tabs"
:key="tab.index"
v-on:change="tabSelected(tab.index)">
{{tab.name}}
</v-tab>
</v-tabs>
The tabs are disabled when the app starts. They are disabled until the user selects an item that will fill the tabs with data. Once the data is displayed the tabs need to bee active. I would like to add code to a button click that gets the data and will also allow the tab to bee active.
I have the following code for a v-tabs control:
</v-tabs>
<v-tab
disabled
v-for="tab of tabs"
:key="tab.index"
v-on:change="tabSelected(tab.index)">
{{tab.name}}
</v-tab>
</v-tabs>
The tabs are disabled when the app starts. They are disabled until the user selects an item that will fill the tabs with data. Once the data is displayed the tabs need to bee active. I would like to add code to a button click that gets the data and will also allow the tab to bee active.
Share Improve this question edited Jan 4, 2023 at 23:26 Riza Khan 3,1705 gold badges28 silver badges63 bronze badges asked Nov 21, 2019 at 2:18 BillBill 1,4872 gold badges34 silver badges66 bronze badges1 Answer
Reset to default 4Got it- I added binding to disabled
<v-tab
:disabled="isDisabled"
v-for="tab of tabs"
:key="tab.index"
v-on:change="tabSelected(tab.index)"
>{{tab.name}}</v-tab>
</v-tabs>
Then on the button click
this.isDisabled = false;
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745527730a4631549.html
评论列表(0条)