Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(tabs): update doc and fix tab demo #5575

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tabs/docs/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<div ng-controller="TabsDemoCtrl">
<p>Select a tab by setting active binding to true:</p>
<p>
<button type="button" class="btn btn-default btn-sm" ng-click="scope.active = 1">Select second tab</button>
<button type="button" class="btn btn-default btn-sm" ng-click="scope.active = 2">Select third tab</button>
<button type="button" class="btn btn-default btn-sm" ng-click="active = 1">Select second tab</button>
<button type="button" class="btn btn-default btn-sm" ng-click="active = 2">Select third tab</button>
</p>
<p>
<button type="button" class="btn btn-default btn-sm" ng-click="tabs[1].disabled = ! tabs[1].disabled">Enable / Disable third tab</button>
Expand Down
4 changes: 2 additions & 2 deletions src/tabs/docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AngularJS version of the tabs directive.
* `active`
<i class="glyphicon glyphicon-eye-open"></i>
_(Default: `Index of first tab`)_ -
Active index of tab.
Active index of tab. Setting this to an existing tab index will make that tab active.

* `justified`
<small class="badge">$</small>
Expand All @@ -31,7 +31,7 @@ AngularJS version of the tabs directive.
<small class="badge">$</small>
<i class="glyphicon glyphicon-eye-open"></i>
_(Default: `false`)_ -
Whether tab is currently selected.
Whether tab is currently selected. Note that this is purely for CSS and will not physically set this tab to active.

* `classes`
<small class="badge">$</small> -
Expand Down