#152 Support for custom 'empty folder' template

- default background image for empty folders
- support for user-defined custom templates
- readme updated
This commit is contained in:
Denys Vuika
2016-06-07 14:31:51 +01:00
parent 4784740108
commit e0d8b1fe31
11 changed files with 106 additions and 3 deletions

View File

@@ -100,5 +100,18 @@
</ul>
</td>
</tr>
<tr *ngIf="folder?.list?.entries?.length === 0">
<td class="mdl-data-table__cell--non-numeric empty-folder-content"
[attr.colspan]="1 + columns?.length">
<template *ngIf="emptyFolderTemplate"
ngFor [ngForOf]="[folder]"
[ngForTemplate]="emptyFolderTemplate">
</template>
<img *ngIf="!emptyFolderTemplate"
[src]="__baseUrl + '/document-list.empty-folder.png'">
</td>
</tr>
</tbody>
</table>