[ADF-4432] TaskFormCloudComponent - should be read only if the task is unclaimed. (#4654)

* [ADF-4432] FormCloud - should be read only if the task is unclaimed.* Modifed formCloud component related claim/unclaim custom buttons.* Added unit tests to the recent changes* Created an component to project custom form outcomes.

* * Added documentation to the formcloudcustomoutcome component.
This commit is contained in:
siva kumar
2019-04-30 14:51:37 +05:30
committed by Eugenio Romano
parent 860529058c
commit 3291ecaccb
12 changed files with 244 additions and 134 deletions

View File

@@ -0,0 +1,34 @@
---
Title: Form cloud custom outcomes component
Added: v3.2.0
Status: Active
Last reviewed: 2019-04-12
---
# [Form cloud custom outcomes component](../../../lib/process-services-cloud/src/lib/form/components/form-cloud-custom-outcomes.component.ts "Defined in form-cloud-custom-outcomes.component.ts")
Supplies custom outcome buttons to be included in [Form cloud component](form-cloud.component.md).
![](../../docassets/images/form-cloud-custom-outcomes.component.png)
## Basic Usage
```html
<adf-cloud-form>
<adf-cloud-form-custom-outcomes>
<button mat-button (click)="onCustomOutcome1()">
Custom-outcome-1
</button>
<button mat-button (click)="onCustomOutcome2()">
Custom-outcome-2
</button>
<button mat-button (click)="onCustomOutcome3()">
Custom-outcome-3
</button>
</adf-cloud-form-custom-outcomes>
</adf-cloud-form>
```
## See Also
- [Form cloud component](form-cloud.component.md)

View File

@@ -32,6 +32,28 @@ Shows a [`form`](../../../lib/process-services-cloud/src/lib/form/models/form-cl
</adf-cloud-form>
```
### Custom form outcomes template
You can set the custom form outcomes using an `<adf-cloud-form-custom-outcomes>` element.
```html
<adf-cloud-form .... >
<adf-cloud-form-custom-outcomes>
<button mat-button (click)="onCustomOutcome1()">
Custom-outcome-1
</button>
<button mat-button (click)="onCustomOutcome2()">
Custom-outcome-2
</button>
<button mat-button (click)="onCustomOutcome3()">
Custom-outcome-3
</button>
</adf-cloud-form-custom-outcomes>
</adf-cloud-form>
```
### Empty form template
The template defined inside `empty-form` will be shown when no form definition is found: