Skip to content

Commit

Permalink
set htmlClass on tab elements if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Raoul Jaeckel committed Jun 3, 2016
1 parent c8f3e3f commit 65ba729
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tabs.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<div ng-init="selected = { tab: 0 }" class="schema-form-tabs {{form.htmlClass}}">
<div ng-init="selected = { tab: 0 }" class="schema-form-tabs {{::form.htmlClass}}">
<ul class="nav nav-tabs">
<li ng-repeat="tab in form.tabs"
ng-disabled="form.readonly"
ng-click="$event.preventDefault() || (selected.tab = $index)"
ng-class="{active: selected.tab === $index}">
ng-class="{active: selected.tab === $index}"
class="{{::tab.htmlClass}}">
<a href="#">{{ tab.title }}</a>
</li>
</ul>

<div class="tab-content {{form.fieldHtmlClass}}">
<div class="tab-content {{::form.fieldHtmlClass}}">
</div>
</div>

0 comments on commit 65ba729

Please sign in to comment.