[AAE-10766] presentational and reusable About (#7969)

This commit is contained in:
Denys Vuika
2022-11-11 16:01:02 +00:00
committed by GitHub
parent 5abe22b9c8
commit 1109a73a19
13 changed files with 319 additions and 192 deletions

View File

@@ -0,0 +1,56 @@
---
Title: About Component
Added: v3.5.0
Status: Active
Last reviewed: 2022-11-11
---
# About Component
Presentational component to display About information as a set of collapsible panels.
## Basic Usage
```html
<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:
```html
<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:
```html
<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>
```