Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize vTab property #51

Open
Geminii opened this issue Jun 27, 2018 · 0 comments
Open

Customize vTab property #51

Geminii opened this issue Jun 27, 2018 · 0 comments

Comments

@Geminii
Copy link

Geminii commented Jun 27, 2018

Hi all !

On my project, i use vue-tabs (so simply to use) but i need more liberty to obtain my result.
vTab has only one property (title), can i propose a pull request to customize more vTab property ?

In fact, i need to specify a dynamic class or style to obtain the following render :
https://ufile.io/wys5y

I have a dynamic list, and need to calculate the width for each item.

<vue-tabs @tab-change="handleAnalyzeTabChange">
    <v-tab v-for="tabType in itemsType" :key="tabType" :title="tabType" :style="getAnalyzeTabTypeWidth(itemsType.length)">
       {{ tabType }}
    </v-tab>
</vue-tabs>

Could be pretty cool to accept style or class on vTab prop and maybe on vTabs container ?
Tell me what do you think about it ;)

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant