mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2930] general purpose "Empty Page" component (#3296)
* empty content component * fix selector name * style fixes * cleanup code * docs for empty content * update docs * update docs * use typography for icon * layout fixes for Login (ported from ACA)
This commit is contained in:
54
docs/core/empty-content.component.md
Normal file
54
docs/core/empty-content.component.md
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
Added: v2.4.0
|
||||
Status: Active
|
||||
Last reviewed:
|
||||
---
|
||||
|
||||
# Empty Content Component
|
||||
|
||||
Provides a generic "Empty Content" UI and can used as a placeholder for components that need to show different content when being empty.
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| icon | string | Material Icon to use |
|
||||
| title | string | String or Resource Key for the title |
|
||||
| subtitle | string | String or Resource Key for the subtitle |
|
||||
|
||||
## Examples
|
||||
|
||||
```html
|
||||
<adf-document-list>
|
||||
<empty-folder-content>
|
||||
<ng-template>
|
||||
<adf-empty-content
|
||||
icon="star_rate"
|
||||
title="APP.BROWSE.FAVORITES.EMPTY_STATE.TITLE"
|
||||
subtitle="APP.BROWSE.FAVORITES.EMPTY_STATE.TEXT">
|
||||
</adf-empty-folder>
|
||||
</ng-template>
|
||||
</empty-folder-content>
|
||||
</adf-document-list>
|
||||
```
|
||||
|
||||

|
||||
|
||||
You can also use multiple lines instead of the subtitle section:
|
||||
|
||||
```html
|
||||
<adf-document-list>
|
||||
<empty-folder-content>
|
||||
<ng-template>
|
||||
<adf-empty-content
|
||||
icon="delete"
|
||||
title="APP.BROWSE.TRASHCAN.EMPTY_STATE.TITLE">
|
||||
<p class="adf-empty-content__text">{{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.FIRST_TEXT' | translate }}</p>
|
||||
<p class="adf-empty-content__text">{{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.SECOND_TEXT' | translate }}</p>
|
||||
</adf-empty-content>
|
||||
</ng-template>
|
||||
</empty-folder-content>
|
||||
</adf-document-list>
|
||||
```
|
||||
|
||||

|
BIN
docs/docassets/images/empty-content-favorites.png
Normal file
BIN
docs/docassets/images/empty-content-favorites.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
docs/docassets/images/empty-content-trashcan.png
Normal file
BIN
docs/docassets/images/empty-content-trashcan.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
Reference in New Issue
Block a user