I use VueJS2 and this plugin https://github.com/cristijora/vue-tabs for tabs in my application.
I want to change the title of tabs, my problem is the tabs need to be rendered.
Here is my code :
<vue-tabs v-on:tab-change="handleTabChange">
<v-tab v-for="(tab, index) in tabs" :title="tab.title">
<div slot="title">
<a v-if="! tab.change">{{tab.title}}</a>
<div class="ui mini input" v-if="tab.change">
<input type="text" v-model="tab.title" />
</div>
<a @click.stop="updateTitle(index, true)" class="tab-icon"><i class="blue edit icon"></i></a>
<a @click.stop="removeTab(index)" class="tab-icon"><i class="red remove circle icon"></i></a>
<a @click.stop="updateTitle(index, false)" class="tab-icon" v-show="tab.change"><i class="green check circle icon"></i></a>
</div>
<dashboard-panel></dashboard-panel>
</v-tab>
<v-tab title="+">
</v-tab>
</vue-tabs>
When I click updateTitle()
, I need to render tabs.
I saw renderTabTitle()
in the code (https://rawgit.com/cristijora/vue-tabs/master/dist/vue-tabs.js). How can I access this method to render my tabs ?