mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
committed by
Mario Romano
parent
30b4db8161
commit
5c5911beef
@@ -35,6 +35,15 @@
|
|||||||
</template>
|
</template>
|
||||||
-->
|
-->
|
||||||
</content-column>
|
</content-column>
|
||||||
|
<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>
|
||||||
<content-column
|
<content-column
|
||||||
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
|
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
|
||||||
key="createdByUser.displayName"
|
key="createdByUser.displayName"
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
"DOCUMENT_LIST": {
|
"DOCUMENT_LIST": {
|
||||||
"COLUMNS": {
|
"COLUMNS": {
|
||||||
"DISPLAY_NAME": "Display name",
|
"DISPLAY_NAME": "Display name",
|
||||||
|
"TAG": "Tag",
|
||||||
"CREATED_BY": "Created by",
|
"CREATED_BY": "Created by",
|
||||||
"CREATED_ON": "Created on"
|
"CREATED_ON": "Created on"
|
||||||
},
|
},
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
"DOCUMENT_LIST": {
|
"DOCUMENT_LIST": {
|
||||||
"COLUMNS": {
|
"COLUMNS": {
|
||||||
"DISPLAY_NAME": "Mostra name",
|
"DISPLAY_NAME": "Mostra name",
|
||||||
|
"TAG": "Tag",
|
||||||
"CREATED_BY": "Creato da",
|
"CREATED_BY": "Creato da",
|
||||||
"CREATED_ON": "Creato il"
|
"CREATED_ON": "Creato il"
|
||||||
},
|
},
|
||||||
|
@@ -265,7 +265,7 @@ This can be changed by adding the following custom html template:
|
|||||||
The component shows all the available apps.
|
The component shows all the available apps.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<activiti-apps [layoutType]="'GRID'"></activiti-filters>
|
<activiti-apps [layoutType]="'GRID'"></activiti-apps>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Events
|
#### Events
|
||||||
|
@@ -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._
|
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
|
```html
|
||||||
<content-column title="Name" key="name" sortable="true" class="full-width ellipsis-cell">
|
<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>
|
</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>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Actions
|
### Actions
|
||||||
|
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Reference in New Issue
Block a user