mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-3323] Fixed URL path to Typescript source files * [ADF-3323] Fixed and checked broken links caused by previous bug
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
---
|
|
Added: v2.0.0
|
|
Status: Active
|
|
---
|
|
|
|
# Task Audit Directive
|
|
|
|
Fetches the Task Audit information in PDF or JSON format.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<button
|
|
adf-task-audit
|
|
[task-id]="taskId"
|
|
[download]="download"
|
|
mat-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
|
<mat-icon>assignment_ind</mat-icon>
|
|
</button>
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| download | `boolean` | true | Enables downloading of the audit when the decorated element is clicked. |
|
|
| fileName | `string` | "Audit" | Name of the downloaded file (for PDF downloads). |
|
|
| format | `string` | "pdf" | Format of the audit information. Can be "pdf" or "json". |
|
|
| taskId | `string` | | (**required**) The id of the task. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| clicked | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<any>` | Emitted when the decorated element is clicked. |
|
|
| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<any>` | Emitted when an error occurs. |
|