Comments (2)
Sorry for my very late reply.
To remove / add or disable tabs, you can use ng-repeat
.
Template:
<v-tabs class="vTabs--default" horizontal control="horizontalTabs" active="horizontalTabs.active">
<v-tab ng-repeat="page in pages" ng-disabled="page.isDisabled" ng-bind="page.title"></v-tab>
</v-tabs>
<v-pages class="vPages--default" active="horizontalTabs.active">
<v-page ng-repeat="page in pages">
<div class="u-formatedText" ng-bind-html="page.content"></div>
</v-page>
</v-pages>
Controller:
$scope.pages = [ ... ];
$scope.addPage = function (page) {
$scope.pages.push(page);
}
$scope.removePage = function (index) {
$scope.pages.splice(index, 1);
}
$scope.disablePage = function (index) {
$scope.pages[index].isDisabled = true;
}
from v-tabs.
thanks. it looks good. I'll try it when i have some time.
from v-tabs.
Related Issues (5)
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 v-tabs.