mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
Updated document list readme
This commit is contained in:
@@ -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
|
||||
<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
|
||||
|
||||
### Customizing default actions
|
||||
|
Reference in New Issue
Block a user