From 398440f90457de800ae7733687f6b328291259d5 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 15 Apr 2016 18:50:36 +0100 Subject: [PATCH] Configurable thumbnails - demo for toggling thumbnails - support for customising folder icon css class --- demo-shell-ng2/app/components/document-list.component.ts | 8 ++++++-- demo-shell-ng2/app/components/page1.view.ts | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/demo-shell-ng2/app/components/document-list.component.ts b/demo-shell-ng2/app/components/document-list.component.ts index c9fcc365fb..af961245eb 100644 --- a/demo-shell-ng2/app/components/document-list.component.ts +++ b/demo-shell-ng2/app/components/document-list.component.ts @@ -25,8 +25,8 @@ import {DocumentEntity} from "./core/entities/document.entity"; ... - - + +

{{document.displayName}}

@@ -40,6 +40,10 @@ export class DocumentList implements OnInit { // example: @Input() navigate: boolean = true; + // example: + @Input('folder-icon-class') folderIconClass: string = 'fa fa-folder-o fa-4x'; + // example: + @Input() thumbnails: boolean = true; rootFolderPath: string = 'swsdp/documentLibrary'; currentFolderPath: string = 'swsdp/documentLibrary'; diff --git a/demo-shell-ng2/app/components/page1.view.ts b/demo-shell-ng2/app/components/page1.view.ts index 4758db1501..b12bf26045 100644 --- a/demo-shell-ng2/app/components/page1.view.ts +++ b/demo-shell-ng2/app/components/page1.view.ts @@ -5,12 +5,17 @@ import {DocumentList} from "./document-list.component"; template: `
- + +
+
+
`, directives: [DocumentList] }) export class Page1View { - + thumbnails: boolean = true; }