alfresco-ng2-components/docs/insights/diagram.component.md
Andy Stark e03f3a1a6b [ADF-3323] Fixed broken links in doc files (#3662)
* [ADF-3323] Fixed URL path to Typescript source files

* [ADF-3323] Fixed and checked broken links caused by previous bug
2018-08-14 15:42:45 +01:00

48 lines
1.1 KiB
Markdown

---
Added: v2.0.0
Status: Active
---
# Diagram Component
Displays process diagrams.
## Basic Usage
This component shows the diagram of a process.
```html
<adf-diagram
[processDefinitionId]="processDefinitionId">
</adf-diagram>
```
The below component shows the diagram of a running process instance with the activities highlighted according to their state (Active/Completed/Pending).
```html
<adf-diagram
[processInstanceId]="processInstanceId">
</adf-diagram>
```
## Class members
### Properties
| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
| height | `number` | 500 | |
| metricColor | `any` | | |
| metricPercentages | `any` | | |
| metricType | `string` | "" | |
| processDefinitionId | `any` | | |
| processInstanceId | `any` | | |
| width | `number` | 1000 | |
### Events
| Name | Type | Description |
| ---- | ---- | ----------- |
| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<Object>` | |
| success | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<Object>` | |