mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Update README.md
This commit is contained in:
@@ -45,10 +45,8 @@ Also make sure you include these dependencies in your .html page:
|
||||
|
||||
```html
|
||||
<alfresco-document-list
|
||||
[thumbnails]="thumbnails"
|
||||
[breadcrumb]="breadcrumb"
|
||||
[navigate]="navigation"
|
||||
[downloads]="downloads"
|
||||
(itemClick)="onItemClick($event)">
|
||||
</alfresco-document-list>
|
||||
```
|
||||
@@ -69,19 +67,11 @@ import {
|
||||
providers: [DOCUMENT_LIST_PROVIDERS]
|
||||
})
|
||||
export class MyView {
|
||||
thumbnails: boolean = true;
|
||||
breadcrumb: boolean = false;
|
||||
navigation: boolean = true;
|
||||
downloads: boolean = true;
|
||||
|
||||
events: any[] = [];
|
||||
|
||||
onItemClick($event) {
|
||||
console.log($event.value);
|
||||
this.events.push({
|
||||
name: 'Item Clicked',
|
||||
value: $event.value
|
||||
});
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user