siva kumar ea1454dde0
[ACA-30333]FE - [Process-services] Create ADF task form. (#5611)
* [ACA-3033] FE - [Process-services] Create ADF task form.

* * Modifed task-from-template

* * Refactored details component with the task-form

* * Updated unit tests to the recent changes

* * Modified task-details component

* * Fixed failing tests

* * Fixed failing tests* Added doc

* * Fixed task-details-form e2e

* Fixed failing test on tas-details e2e

* * Fixed flaky process-services e2e

* * Fixed flaky e2e tests
2020-04-22 08:28:03 +01:00

3.4 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Task Form component v2.0.0 Active 2020-04-21

Task Form component

Shows a form for a task.

Basic Usage

<adf-task-form 
    [taskId]="taskId">
</adf-task-form>

Class members

Properties

Name Type Default value Description
fieldValidators FormFieldValidator[] [] Field validators for use with the form.
readOnlyForm boolean false Toggles read-only state of the form. All form widgets render as read-only if enabled.
showFormCompleteButton boolean true Toggles rendering of the Complete outcome button.
showFormRefreshButton boolean true Toggles rendering of the Refresh button.
showFormSaveButton boolean true Toggles rendering of the Save outcome button.
showFormTitle boolean false Toggles rendering of the form title.
showCancelButton boolean true Toggles rendering of the Cancel empty form button.
showFormValidationIcon boolean true Toggle rendering of the validation icon
taskId string (required) The id of the task whose details we are asking for.

Events

Name Type Description
cancel EventEmitter<void> Emitted when the "Cancel" button is clicked.
completed EventEmitter<void> Emitted when the form associated with the task is completed.
error EventEmitter<any> Emitted when an error occurs.
executeOutcome EventEmitter<FormOutcomeEvent> Emitted when any outcome is executed. Default behaviour can be prevented via event.preventDefault().
formCompleted EventEmitter<FormModel> Emitted when the form is submitted with the Complete outcome.
formContentClicked EventEmitter<ContentLinkModel> Emitted when the form field content is clicked.
formLoaded EventEmitter<FormModel> Emitted when the form is loaded or reloaded.
formError EventEmitter<FormFieldModel[]> Emitted when the supplied form values have a validation error.
formSaved EventEmitter<FormModel> Emitted when the form is submitted with the Save or custom outcomes.

See also