#244 breadcrumb as a separate component (doclist only)

This commit is contained in:
Denys Vuika
2016-06-21 15:51:51 +01:00
parent bf7414fc85
commit e101f22e28
10 changed files with 175 additions and 138 deletions

View File

@@ -48,7 +48,14 @@ import {
<hr>
<div class="container">
<alfresco-document-list #doclist>
<alfresco-document-list-breadcrumb
[currentFolderPath]="currentPath"
[target]="documentList">
</alfresco-document-list-breadcrumb>
<alfresco-document-list
#documentList
[currentFolderPath]="currentPath"
(folderChange)="onFolderChanged($event)">
<content-columns>
<content-column source="$thumbnail" type="image"></content-column>
@@ -144,6 +151,7 @@ import {
})
class DocumentListDemo implements OnInit {
currentPath: string = '/';
authenticated: boolean;
public host: string = 'http://devproducts-platform.alfresco.me';
@@ -202,6 +210,12 @@ class DocumentListDemo implements OnInit {
this.authenticated = false;
});
}
onFolderChanged(event?: any) {
if (event) {
this.currentPath = event.path;
}
}
}
bootstrap(DocumentListDemo, [