Skip to content

Commit

Permalink
tabpane amexio custom styling fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
DatsGawas committed Aug 8, 2017
1 parent 3b49a9f commit 64b528b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tabpane/tabpane.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ declare var $: any;
<div [attr.id]="elementId" (window:resize)="onResize($event)">
<div (click)="leftClick()" class="amexio-tabpane-scroller amexio-tabpane-scroller-left" >
<span style="display: none;" [attr.id]="'left-'+elementId"><i class="fa fa-caret-left fa-2x" aria-hidden="true"></i></span>
<span class="amexio-tabpane-hide-span" [attr.id]="'left-'+elementId"><i class="fa fa-caret-left fa-2x" aria-hidden="true"></i></span>
</div>
<div (click)="rightClick()" class="amexio-tabpane-scroller amexio-tabpane-scroller-right">
<span style="display: block" [attr.id]="'right-'+elementId"><i class="fa fa-caret-right fa-2x" aria-hidden="true"></i></span>
<span class="amexio-tabpane-display-span" [attr.id]="'right-'+elementId"><i class="fa fa-caret-right fa-2x" aria-hidden="true"></i></span>
</div>
<div class="amexio-tabpane-wrapper" [attr.id]="'amexio-tabpane-wrapper-'+elementId">
<ul class="nav nav-tabs" role="tablist" [attr.id]="'list-'+elementId">
<li class="nav-item" *ngFor="let tab of tabs" >
<a [class]="getTabClass(tab)" data-toggle="tab" role="tab" [ngClass]="{'active':tab.active}" style="cursor: pointer;" (click)="activateTab(tab.elementId)" [attr.id]="tab.elementId" >&nbsp;{{tab.title}}&nbsp;&nbsp;<a *ngIf="closable" id="'closable-'+{{tab.elementId}}" style="vertical-align: top; cursor: pointer;" (click)="closeTab(tab.elementId)">&times;</a></a>
<a [class]="getTabClass(tab)" data-toggle="tab" role="tab" [ngClass]="{'active':tab.active}" style="cursor: pointer;" (click)="activateTab(tab.elementId)" [attr.id]="tab.elementId" >&nbsp;{{tab.title}}&nbsp;&nbsp;<a *ngIf="closable" id="'closable-'+{{tab.elementId}}" class="amexio-tabpane-closeicon-position" (click)="closeTab(tab.elementId)">&times;</a></a>
</li>
</ul>
</div>
Expand Down
10 changes: 10 additions & 0 deletions src/tabpane/tabpane.custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,13 @@
.amexio-tabpane-scroller-left {
float:left;
}
.amexio-tabpane-hide-span{
display: none;
}
.amexio-tabpane-display-span{
display: block;
}
.amexio-tabpane-closeicon-position{
vertical-align: top;
cursor: pointer;
}

0 comments on commit 64b528b

Please sign in to comment.