k15t-aui-ng2
Version:
aui-ng2 is a set of angular 2 components, directives and services to simplify the integration with Atlassian products based on AUI/ADG. The library is still under development and is considered in an experimental state. So be aware that things will change
26 lines • 1.72 kB
HTML
<div class="aui-tabs horizontal-tabs" [style.visibility]="tabContainerVisibility" [style.width.px]="maxWidthPx">
<ul class="tabs-menu aui-ng-tabs-menu" #tabsMenu>
<li class="menu-item" style="max-width: 300px" [ngClass]="{'active-tab': tab.active}" *ngFor="let tab of tabs;" auiNgTabHeaderElementRef>
<a (click)="setActiveTab(tab)" class="aui-ng-menu-item">{{ tab.title }}</a>
</li>
<li *ngIf="tabsDropDown.length > 0" class="menu-item aui-ng-dropdown-container" [style.max-width.px]="maxWidthDropdownPx"
[ngClass]="{'active-tab': selectedDropdownTab.isActive()}">
<div class="aui-buttons">
<a class="aui-button aui-button-split-main aui-ng-dropdown-button" (click)="setActiveTab(selectedDropdownTab)"
style="border-right: 1px !important;" [style.max-width.px]="maxWidthDropdownPx - 40" >{{ selectedDropdownTab.title }}</a>
<a class="aui-button aui-button-split-more aui-ng-dropdown-button-select" (click)="showDropdownOptions()" (blur)="hideDropdownOptions()">
<span class="aui-icon aui-icon-small aui-iconfont-more"></span>
</a>
</div>
<div class="aui-ng-dropdown-options-container" [hidden]="!showOptions" *ngIf="showOptions" [style.right]="dropdownListOrientation">
<ul class="aui-ng-dropdown-options aui-list-truncate" (blur)="hideDropdownOptions()" tabindex="-1" auiNgAutoFocus>
<li *ngFor="let tab of tabsDropDown" (click)="setActiveTab(tab); selectedDropdownTab = tab;" [hidden]="selectedDropdownTab == tab" class="aui-ng-dropdown-option">
{{ tab.title }}
</li>
</ul>
</div>
</li>
<li style="width: 10px"> </li>
</ul>
<ng-content></ng-content>
</div>