[ADF-1346] Attachment list component is shown for completed tasks/processes. (#2194)

* Added ng-content to adf-empty-list compoent.
* Updated css to scss.
* Added 'CUSTOM_ELEMENTS_SCHEMA'  to allow non-angular elements.
* Updated readme.mg file
This commit is contained in:
siva kumar
2017-08-15 19:21:06 +05:30
committed by Eugenio Romano
parent 843fb817ac
commit d486e4b90a
29 changed files with 773 additions and 139 deletions

View File

@@ -293,10 +293,12 @@ You can add a template that will be shown when there are no results in your data
</adf-datatable>
```
### Default Empty content template
### Custom Empty content template
You can use the empty list component if you want to show the default ADF empty template:
You can use any HTML layout or Angular component as a content of the empty template section by using the special `<adf-empty-list-header>, <adf-empty-list-body>, <adf-empty-list-footer>` elements:
```html
<adf-datatable
[data]="data"
@@ -308,11 +310,11 @@ You can use the empty list component if you want to show the default ADF empty t
(rowClick)="onRowClick($event)"
(rowDblClick)="onRowDblClick($event)">
<adf-empty-list
[emptyListImageUrl]="'my-background-image.svg'"
[emptyMsg]="'My custom msg'"
[dragDropMsg]="'My drag and drop msg'"
[additionalMsg]="'My additional msg'">
<adf-empty-list>
<adf-empty-list-header>"'My custom Header'"</adf-empty-list-header>
<adf-empty-list-body>"'My custom body'"</adf-empty-list-body>
<adf-empty-list-footer>"'My custom footer'"</adf-empty-list-footer>
<ng-content>"'HTML Layout'"</ng-content>
</adf-empty-list>
</adf-datatable>