[ADF-2627] Icons-only mode for Info Drawer (#3398)

* tab with icon

* docs

* test
This commit is contained in:
Cilibiu Bogdan
2018-05-26 12:18:28 +03:00
committed by Eugenio Romano
parent fd729e76c0
commit 648ac585b4
7 changed files with 74 additions and 1 deletions

View File

@@ -10,6 +10,12 @@
<mat-tab-group [(selectedIndex)]="selectedIndex" class="adf-info-drawer-tabs" (selectedTabChange)="onTabChange($event)">
<ng-container *ngFor="let contentBlock of contentBlocks">
<mat-tab [label]="contentBlock.label" class="adf-info-drawer-tab">
<ng-container *ngIf="contentBlock.icon">
<ng-template mat-tab-label>
<mat-icon>{{ contentBlock.icon }}</mat-icon>
</ng-template>
</ng-container>
<ng-container *ngTemplateOutlet="contentBlock.content"></ng-container>
</mat-tab>
</ng-container>