mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [DW-635] Empty State Component * [DW-635] Empty State Component * [DW-635] Empty state Issue * [DW-635] Use empty state component and custom empty directive * [ADF-3041] Documentation for TaskList Component - Empty State issue.
35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
<div *ngIf="!requestNode">{{ 'ADF_TASK_LIST.FILTERS.MESSAGES.NONE' | translate }}</div>
|
|
<div *ngIf="requestNode">
|
|
<div>
|
|
<adf-datatable
|
|
[data]="data"
|
|
[loading]="isLoading"
|
|
[multiselect]="multiselect"
|
|
[selectionMode]="selectionMode"
|
|
(row-select)="onRowSelect($event)"
|
|
(row-unselect)="onRowUnselect($event)"
|
|
(rowClick)="onRowClick($event)"
|
|
(row-keyup)="onRowKeyUp($event)">
|
|
<loading-content-template>
|
|
<ng-template>
|
|
<!--Add your custom loading template here-->
|
|
<mat-progress-spinner
|
|
class="adf-task-list-loading-margin"
|
|
[color]="'primary'"
|
|
[mode]="'indeterminate'">
|
|
</mat-progress-spinner>
|
|
</ng-template>
|
|
</loading-content-template>
|
|
<no-content-template>
|
|
<ng-template>
|
|
<adf-empty-content *ngIf="!emptyCustomContent"
|
|
icon="assessment"
|
|
[title]="'ADF_TASK_LIST.LIST.MESSAGES.NONE' | translate">
|
|
</adf-empty-content>
|
|
<ng-content select="adf-empty-custom-content"></ng-content>
|
|
</ng-template>
|
|
</no-content-template>
|
|
</adf-datatable>
|
|
</div>
|
|
</div>
|