mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
'Readme.md' improvements
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- [Alfresco Docker image with CORS support](https://github.com/wabson/alfresco-docker-cors)
|
||||||
|
|
||||||
### Start development
|
### Start development
|
||||||
|
|
||||||
Install the npm packages described in the `package.json` and verify that it works:
|
Install the npm packages described in the `package.json` and verify that it works:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install
|
$ npm install
|
||||||
$ bower install
|
|
||||||
$ npm start
|
$ npm start
|
||||||
```
|
```
|
||||||
You're ready to write your application.
|
You're ready to write your application.
|
||||||
|
39
ng2-alfresco/README.md
Normal file
39
ng2-alfresco/README.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Alfresco Components for Angular 2
|
||||||
|
|
||||||
|
Components included:
|
||||||
|
|
||||||
|
* Document List Component
|
||||||
|
* Hello World component
|
||||||
|
* Alfresco Service
|
||||||
|
|
||||||
|
### Document List Component
|
||||||
|
|
||||||
|
```ts
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<alfresco-document-list
|
||||||
|
#list
|
||||||
|
[thumbnails]="thumbnails"
|
||||||
|
[breadcrumb]="breadcrumb"
|
||||||
|
[navigate]="navigation"
|
||||||
|
[downloads]="downloads"
|
||||||
|
(itemClick)="onItemClick($event)">
|
||||||
|
</alfresco-document-list>
|
||||||
|
```
|
Reference in New Issue
Block a user