[ADF-4000] Fix custom directive selectors on Datatable component (#4242)

This commit is contained in:
davidcanonieto 2019-02-01 15:10:50 +00:00 committed by Eugenio Romano
parent 120177f152
commit a472772dfd
2 changed files with 2 additions and 8 deletions

View File

@ -16,13 +16,11 @@ Provides a generic "Empty Content" placeholder for components.
```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-content>
</ng-template>
</empty-folder-content>
</adf-document-list>
```
@ -44,13 +42,11 @@ Provides a generic "Empty Content" placeholder for components.
```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-content>
</ng-template>
</empty-folder-content>
</adf-document-list>
```
@ -62,14 +58,12 @@ 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>
```

View File

@ -34,7 +34,7 @@
</div>
<!-- <div adf-empty-list-header class="adf-empty-list-header"> {{'ADF-DOCUMENT-LIST.EMPTY.HEADER' | translate}} </div> -->
</adf-empty-list>
<ng-content select="adf-custom-empty-content-template"></ng-content>
<ng-content select="adf-custom-empty-content-template, empty-folder-content"></ng-content>
</ng-template>
</adf-no-content-template>
@ -44,7 +44,7 @@
<mat-icon>ic_error</mat-icon>
<p class="adf-no-permission__template--text">{{ 'ADF-DOCUMENT-LIST.NO_PERMISSION' | translate }}</p>
</div>
<ng-content select="adf-custom-no-permission-template"></ng-content>
<ng-content select="adf-custom-no-permission-template, no-permission-content"></ng-content>
</ng-template>
</adf-no-permission-template>