mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Merge branch 'development' into next-release-3.2.0
This commit is contained in:
@@ -8,13 +8,14 @@
|
||||
|
||||
<ng-template #tabLayout>
|
||||
<mat-tab-group [(selectedIndex)]="selectedIndex" class="adf-info-drawer-tabs" (selectedTabChange)="onTabChange($event)">
|
||||
<mat-tab *ngFor="let contentBlock of contentBlocks" [label]="contentBlock.label" class="adf-info-drawer-tab">
|
||||
<ng-container *ngIf="contentBlock.icon">
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon>{{ contentBlock.icon }}</mat-icon>
|
||||
<span *ngIf="contentBlock.label">{{ contentBlock.label }}</span>
|
||||
</ng-template>
|
||||
</ng-container>
|
||||
<mat-tab *ngFor="let contentBlock of contentBlocks"
|
||||
[label]="contentBlock.label"
|
||||
class="adf-info-drawer-tab">
|
||||
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon *ngIf="contentBlock.icon">{{ contentBlock.icon }}</mat-icon>
|
||||
<span *ngIf="contentBlock.label">{{ contentBlock.label }}</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-container *ngTemplateOutlet="contentBlock.content"></ng-container>
|
||||
</mat-tab>
|
||||
|
@@ -1,7 +1,12 @@
|
||||
.adf {
|
||||
|
||||
&-info-drawer {
|
||||
display: block;
|
||||
|
||||
.mat-tab-label {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
& &-layout {
|
||||
|
||||
&-content {
|
||||
|
Reference in New Issue
Block a user