Skip to content

Commit 65ba729

Browse files
author
Raoul Jaeckel
committed
set htmlClass on tab elements if defined
1 parent c8f3e3f commit 65ba729

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tabs.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
<div ng-init="selected = { tab: 0 }" class="schema-form-tabs {{form.htmlClass}}">
1+
<div ng-init="selected = { tab: 0 }" class="schema-form-tabs {{::form.htmlClass}}">
22
<ul class="nav nav-tabs">
33
<li ng-repeat="tab in form.tabs"
44
ng-disabled="form.readonly"
55
ng-click="$event.preventDefault() || (selected.tab = $index)"
6-
ng-class="{active: selected.tab === $index}">
6+
ng-class="{active: selected.tab === $index}"
7+
class="{{::tab.htmlClass}}">
78
<a href="#">{{ tab.title }}</a>
89
</li>
910
</ul>
1011

11-
<div class="tab-content {{form.fieldHtmlClass}}">
12+
<div class="tab-content {{::form.fieldHtmlClass}}">
1213
</div>
1314
</div>

0 commit comments

Comments
 (0)