From 4a4a5468affeb377ac374abf88cfb5bd295794a1 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 31 May 2016 16:44:44 +0100 Subject: [PATCH] Updated document list readme --- .../ng2-alfresco-documentlist/README.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ng2-components/ng2-alfresco-documentlist/README.md b/ng2-components/ng2-alfresco-documentlist/README.md index a9706bf624..3406d09752 100644 --- a/ng2-components/ng2-alfresco-documentlist/README.md +++ b/ng2-components/ng2-alfresco-documentlist/README.md @@ -316,6 +316,7 @@ Every folder action is rendered as a separate button. Document List emits the following events: - itemClick +- folderChange ### itemClick event @@ -362,6 +363,32 @@ For the event `value` the full node info is provided, i.e.: _The content of the json above was reduced for the sake of simplicity._ +### folderChange event + +This event is emitted every time current folder is changed. +Event handler gets the following data available: + +- folder +- absolutePath +- relativePath + +```html + + +``` + +```ts +export class MyView { + ... + onFolderChanged(e) { + console.log(e.value); + console.log(e.absolutePath); + console.log(e.relativePath); + } +} +``` + ## Advanced usage and customization ### Customizing default actions