thalassa-aqueduct
Version:
Dynamic haproxy load balancer and configuration. Part of Thalassa
29 lines (25 loc) • 1 kB
HTML
<div ng-controller="TabsDemoCtrl">
Select a tab by setting active binding to true:
<br />
<button class="btn btn-small" ng-click="tabs[0].active = true">Select second tab</button>
<button class="btn btn-small" ng-click="tabs[1].active = true">Select third tab</button>
<button class="btn btn-small" ng-click="tabs[1].disabled = ! tabs[1].disabled">Enable / Disable third tab</button>
<hr />
<tabset>
<tab heading="Static title">Static content</tab>
<tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active" disabled="tab.disabled">
{{tab.content}}
</tab>
<tab select="alertMe()">
<tab-heading>
<i class="icon-bell"></i> Select me for alert!
</tab-heading>
I've got an HTML heading, and a select callback. Pretty cool!
</tab>
</tabset>
<hr />
<tabset vertical="true" type="navType">
<tab heading="Vertical 1">Vertical content 1</tab>
<tab heading="Vertical 2">Vertical content 2</tab>
</tabset>
</div>