mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1749] Task/Process List - Should be able to customize the rendered columns from JSON (#2613)
* [ADF-1749] Task List - Should be able to customize the rendered columns from JSON * Refactored task/process list components to support customization key's * Added Key properties to the app.config.json. * Created preset model for task/process list . * [ADF-1749] Task/Process List - Should be able to customize the rendered columns from JSON * Fixed failing testcases. * [ADF-1749] Task/Process List - Should be able to customize the rendered columns from JSON. * Added test cases. * Updated task/process list readme.md file * * Updated task/process list readme.md file.
This commit is contained in:
committed by
Eugenio Romano
parent
348f4971ce
commit
3204bdebcb
@@ -26,12 +26,45 @@ This component renders a list containing all the process instances matched by th
|
||||
</adf-process-instance-list>
|
||||
```
|
||||
|
||||
You can also use custom schema declaration as shown below:
|
||||
|
||||
define custom schema in the app.config.json as shown below json format.
|
||||
|
||||
```json
|
||||
"adf-process-list": {
|
||||
"presets": {
|
||||
"customSchema": [
|
||||
{
|
||||
"key": "name",
|
||||
"type": "text",
|
||||
"title": "name",
|
||||
"sortable": true
|
||||
}],
|
||||
"default": [
|
||||
{
|
||||
"key": "name",
|
||||
"type": "text",
|
||||
"title": "name",
|
||||
"sortable": true
|
||||
}],
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```html
|
||||
<adf-process-instance-list
|
||||
[appId]="'1'"
|
||||
[state]="'open'"
|
||||
[presetColumn]="'customSchema'">
|
||||
</adf-process-instance-list>
|
||||
```
|
||||
### Properties
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| appId | The id of the app. |
|
||||
| processDefinitionKey | The processDefinitionKey of the process. |
|
||||
| presetColumn | string || The presetColumn of the custom schema to fetch. |
|
||||
| state | Define state of the processes. Possible values are `running`, `completed` and `all` |
|
||||
| sort | Define sort of the processes. Possible values are `created-desc`, `created-asc`, `ended-desc`, `ended-asc` |
|
||||
| schemaColumn | List of columns to display in the process instances datatable (see the [Details](#details) section below) |
|
||||
|
Reference in New Issue
Block a user