Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

abilty to set default tab when none specified #69

Closed
dissolve opened this issue Jul 2, 2018 · 2 comments
Closed

abilty to set default tab when none specified #69

dissolve opened this issue Jul 2, 2018 · 2 comments

Comments

@dissolve
Copy link
Contributor

dissolve commented Jul 2, 2018

It would be nice to specify that if there is no other reason to select a tab, don't just assume tab[0] but rather have an additional option that can pass the ID or the index perhaps of the tab to default to.

It would just need an additional option above this line
https://github.com/spatie/vue-tabs-component/blob/master/src/components/Tabs.vue#L76

@dissolve
Copy link
Contributor Author

dissolve commented Jul 2, 2018

To explain a little more, this is useful when you disable the tab cache.

dissolve pushed a commit to dissolve/vue-tabs-component that referenced this issue Jul 2, 2018
This is very useful when turning off caching

spatie#69
dissolve pushed a commit to dissolve/vue-tabs-component that referenced this issue Jul 2, 2018
This adds the ability to set a defaultTabHash so that you can stop from
just arbitrarily displaying the first tab if nothing is selected.

This is especially useful when turning off caching

Tests passing, does not break functionality so bumping version in
changelog to 1.5.0
sebastiandedeyne added a commit that referenced this issue Aug 31, 2018
Issue #69: Allow setting default tab
@sebastiandedeyne
Copy link
Member

PR merged!

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

No branches or pull requests

2 participants