mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#244 breadcrumb as a separate component (doclist only)
This commit is contained in:
@@ -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, [
|
||||
|
Reference in New Issue
Block a user