Comments (5)
Note: why isn't is-visible a prop?
<tab name="Invissible tab" v-if="tabXvisible">
...
</tab>
export default {
data() {
return{
tabXvisible = false,
}
}
}
or you can do it programically:
this.$children[0].findTab('#advice').isVisible = false
but that is not the way vue is intended to work...
from vue-tabs-component.
You can watch the variable to automate it, reusing @JBtje data ():
<tabs ref="tabs">
...
</tabs>
...
watch: {
tabXvisible: function (val) {
this.$refs.tabs.setTabVisible(this.tabXHash, val)
}
}
...
@JBtje I see no reason why isVisible could not be a property, PR? :)
from vue-tabs-component.
@manelclos PR is only useful if the project owner accepts them.... Seems that's not the case for this project. (my PR is still not accepted)
from vue-tabs-component.
@JBtje as you can see here #67 (comment) you just need to be patient
from vue-tabs-component.
The visibility method was added to work a round a specific case (see #16).
In hindsight, it should have been done differently, but we don't really want to support any new configuration at the moment, so we're going to stick with the existing API.
We'll revisit this problem in a future major version of this package.
from vue-tabs-component.
Related Issues (20)
- How can I apply custom CSS to this component? HOT 1
- is possible to get the events a tab will emit - need to know a different tab was clicked HOT 2
- active on load in the template HOT 1
- Add custom CSS class to tab header item HOT 1
- Tabs have no CSS HOT 2
- Multiple tabs on the same page HOT 1
- page scroll to top when click change tab HOT 2
- vue-tabs-component contenteffest HOT 1
- Error in IE11 - Object doesn't support property or method 'find' HOT 2
- Can't import vue-tabs-component HOT 6
- Typescript Support (Feature Request) HOT 1
- abilty to set default tab when none specified HOT 2
- Change tab programmatically HOT 3
- how change tabs in methods HOT 1
- Tabs get [__ob__: Observer] HOT 3
- Multiple Tabs in a components HOT 2
- 1.5.0 is missing HOT 4
- Page scrolls to the top randomly HOT 2
- do not use expiringStorage if cacheLifetime = 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tabs-component.