mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2007] Info Drawer - currentTab event should return a key not the label (#2715)
* [ADF-2007] bug fix Info drawer will emit the current active tab instead of the tab label Also updated the test spec * Emit tab index on clicking
This commit is contained in:
committed by
Eugenio Romano
parent
eba4399d6c
commit
eba46e4e44
@@ -7,7 +7,7 @@
|
||||
<ng-container info-drawer-content *ngIf="showTabLayout(); then tabLayout else singleLayout"></ng-container>
|
||||
|
||||
<ng-template #tabLayout>
|
||||
<mat-tab-group class="adf-info-drawer-tabs" (selectChange)="onTabChange($event)">
|
||||
<mat-tab-group 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 *ngTemplateOutlet="contentBlock.content"></ng-container>
|
||||
|
Reference in New Issue
Block a user