Dev eromano tag example (#1596)

* Update README.md

* Readme update with tag example integration document list

* add tag component in the document list demo
This commit is contained in:
Eugenio Romano
2017-02-06 09:54:35 +00:00
committed by Mario Romano
parent 30b4db8161
commit 5c5911beef
6 changed files with 26 additions and 3 deletions

View File

@@ -265,7 +265,7 @@ This can be changed by adding the following custom html template:
The component shows all the available apps.
```html
<activiti-apps [layoutType]="'GRID'"></activiti-filters>
<activiti-apps [layoutType]="'GRID'"></activiti-apps>
```
#### Events

View File

@@ -501,7 +501,7 @@ _You may want using **row** api to get raw value access.
Use **data** api to get values with post-processing, like datetime/icon conversion._
Final example, we'll name the context as `entry`:
In the Example below will prepend `Hi!` to each file and folder name in the list:
```html
<content-column title="Name" key="name" sortable="true" class="full-width ellipsis-cell">
@@ -511,9 +511,21 @@ Final example, we'll name the context as `entry`:
</content-column>
```
Example above will prepend `Hi!` to each file and folder name in the list.
In the Example below will add the [ng2-alfresco-tag](https://www.npmjs.com/package/ng2-alfresco-tag) component is integrate in the document list.
```html
<content-column
title="{{'DOCUMENT_LIST.COLUMNS.TAG' | translate}}"
key="id"
sortable="true"
class="full-width ellipsis-cell">
<template let-entry="$implicit">
<alfresco-tag-node-list [nodeId]="entry.data.getValue(entry.row, entry.col)"></alfresco-tag-node-list>
</template>
</content-column>
```
![Tag component in document List](docs/assets/document-list-tag-template.png)
### Actions

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB