mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
1.3 KiB
1.3 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
About Component | v3.5.0 | Active | 2022-11-11 |
About Component
Presentational component to display About information as a set of collapsible panels.
Basic Usage
<adf-about>
<adf-about-panel [label]="'Panel 1'">
<ng-template>
<your-components></your-components>
</ng-template>
</adf-about-panel>
<adf-about-panel [label]="'Panel 2'">
<ng-template>
<your-components></your-components>
</ng-template>
</adf-about-panel>
</adf-about>
Conditional Display
You can wire each panel with the *ngIf
conditions:
<adf-about>
<adf-about-panel *ngIf="devMode" [label]="'Panel 1'">
<ng-template>
<your-components></your-components>
</ng-template>
</adf-about-panel>
</adf-about>
Where devMode
is an example of an input property exposed by your component.
Observables are also supported:
<adf-about>
<adf-about-panel *ngIf="extensions$ | async as extensions" [label]="'ABOUT.PLUGINS.TITLE' | translate">
<ng-template>
<adf-about-extension-list [data]="extensions"></adf-about-extension-list>
</ng-template>
</adf-about-panel>
</adf-about>