#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

@@ -23,7 +23,8 @@ import {
EventEmitter,
AfterContentInit,
AfterViewChecked,
OnChanges
OnChanges,
TemplateRef
} from 'angular2/core';
import { AlfrescoService } from './../services/alfresco.service';
import { MinimalNodeEntity, NodePaging } from './../models/document-library.model';
@@ -45,6 +46,8 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
DEFAULT_ROOT_FOLDER: string = '/Sites/swsdp/documentLibrary';
__baseUrl = __moduleName.replace('/document-list.js', '');
@Input()
navigate: boolean = true;
@@ -73,6 +76,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
actions: ContentActionModel[] = [];
columns: ContentColumnModel[] = [];
emptyFolderTemplate: TemplateRef;
private _folder: NodePaging;