Updated document list readme

This commit is contained in:
Denys Vuika
2016-05-31 16:44:44 +01:00
parent 366d147d53
commit 4a4a5468af

View File

@@ -316,6 +316,7 @@ Every folder action is rendered as a separate button.
Document List emits the following events: Document List emits the following events:
- itemClick - itemClick
- folderChange
### itemClick event ### 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._ _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
<alfresco-document-list
(folderchange)="onFolderChanged($event)">
</alfresco-document-list>
```
```ts
export class MyView {
...
onFolderChanged(e) {
console.log(e.value);
console.log(e.absolutePath);
console.log(e.relativePath);
}
}
```
## Advanced usage and customization ## Advanced usage and customization
### Customizing default actions ### Customizing default actions