alfresco-ng2-components/docs/process-services/task-header.component.md
Vito 3a699a38d4 [ADF-2238] removed created by property (#3380)
* [ADF-2238] removed created by property

* [ADF-2238] added a condition to avoid checklist delete for completed task

* Revert "[ADF-2238] added a condition to avoid checklist delete for completed task"

This reverts commit fc2227ea0491f14bdb5c4ef1dc8c01967780072c.
2018-05-23 19:08:40 +01:00

1.5 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Active 2018-03-21

Task Header component

Shows all the information related to a task.

adf-task-header

Basic Usage

<adf-task-header
    [taskDetails]="taskDetails">
</adf-task-header>

Class members

Properties

Name Type Default value Description
formName string null The name of the form.
taskDetails TaskDetailsModel (required) Details related to the task.

Events

Name Type Description
claim EventEmitter<any> Emitted when the task is claimed.
unclaim EventEmitter<any> Emitted when the task is unclaimed (ie, requeued).

Details

The component populates an internal array of CardViewModel with the information that we want to display.

By default all properties are displayed:

assignee, status, priority, dueDate, category, parentName, created, id, description, formName.

However, you can also choose which properties to show using a configuration in app.config.json:


    "adf-task-header": {
      "presets": {
          "properties" : [ "assignee", "status", "priority", "parentName"]
      }
    },

With this configuration, only the four listed properties will be shown.

See also