mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [ADF-4128] ProcessCloud - add complete task directive * [ADF-4128] ProcessCloud - fix completion functionality and add documentation * [ADF-4128] ProcessCloud - PR changes * [ADF-4128] ProcessCloud - lint * [ADF-4148] ProcessServicesCloud - change layout * [ADF-4128] fix PR changes * [ADF-4128] - refractor complete task directive * [ADF-4128] - fix lint * [ADF-4128] - PR changes * [ADF-4128] - replace isCompleted method from service with model method * [ADF-4128] fix unit tests * [ADF-4128] - change travis yml * [ADF-4128] - fix travis.yml * [ADF-4128] - travis lint
26 lines
852 B
Markdown
26 lines
852 B
Markdown
---
|
|
Title: Complete Cloud Task
|
|
Added: v3.1.0
|
|
Status: Experimental
|
|
Last reviewed: 2019-02-28
|
|
---
|
|
|
|
# [Complete task directive](../../lib/process-services-cloud/src/lib/task/task-header/directives/complete-task.directive.ts "Defined in complete-task.directive.ts")
|
|
|
|
Complete a task
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<button adf-cloud-complete-task [appName]="appName" [taskId]="taskId" (success)="onTaskCompleted()">Complete</button>
|
|
```
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| taskId | `string` | empty |(Required) The id of the task. |
|
|
| appName | `string` | empty | (Required) The name of the application. |
|
|
| success | `EventEmitter<any>` | empty | Emitted when the task is completed. |
|
|
| error | `EventEmitter<any>` | empty | Emitted when the task cannot be completed. | |