mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-15988] Update About component (#8814)
* [AAE-15988] Update About component * [AAE-15988] Add automationId to AboutPanel directive
This commit is contained in:
committed by
GitHub
parent
e7dbedd497
commit
57ff885483
@@ -22,6 +22,7 @@ import { ContentChild, Directive, Input, TemplateRef } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class AboutPanelDirective {
|
export class AboutPanelDirective {
|
||||||
@Input() label!: string;
|
@Input() label!: string;
|
||||||
|
@Input() automationId: string;
|
||||||
|
|
||||||
@ContentChild(TemplateRef)
|
@ContentChild(TemplateRef)
|
||||||
layoutTemplate!: TemplateRef<any>;
|
layoutTemplate!: TemplateRef<any>;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<mat-accordion [togglePosition]="'before'" class="adf-about-panel">
|
<mat-accordion [togglePosition]="'before'" class="adf-about-panel">
|
||||||
<ng-container *ngFor="let panel of panels">
|
<ng-container *ngFor="let panel of panels">
|
||||||
<mat-expansion-panel>
|
<mat-expansion-panel [attr.data-automation-id]="panel.automationId">
|
||||||
<mat-expansion-panel-header class="adf-about-panel-header">
|
<mat-expansion-panel-header class="adf-about-panel-header">
|
||||||
<mat-panel-title class="adf-about-panel-header__title">{{panel.label}}</mat-panel-title>
|
<mat-panel-title class="adf-about-panel-header__title">{{panel.label}}</mat-panel-title>
|
||||||
</mat-expansion-panel-header>
|
</mat-expansion-panel-header>
|
||||||
|
Reference in New Issue
Block a user