mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2627] Icons-only mode for Info Drawer (#3398)
* tab with icon * docs * test
This commit is contained in:
committed by
Eugenio Romano
parent
fd729e76c0
commit
648ac585b4
@@ -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>
|
||||
|
Reference in New Issue
Block a user