-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set htmlClass on tab elements if defined
- Loading branch information
Raoul Jaeckel
committed
Jun 3, 2016
1 parent
c8f3e3f
commit 65ba729
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |