Andy Stark 9dfac14931 Revert "[ADF-3911] Converted GIF image URLs to absolute" (#4164)
* Revert "[ADF-3745] Reviewed new Group cloud component docs (#4160)"

This reverts commit 0d8beb195ae12bb452a580934a8dc4b616137f98.

* Revert "add missing property to NavBarLinkRef interface"

This reverts commit e3648dea5f24ef380b718b1fa216c18cf34a725d.

* Revert "[ADF-3911] Converted GIF image URLs to absolute (#4159)"

This reverts commit c8303f34792d8967e058360a63a7cfaf7b533d17.
2019-01-15 12:49:11 +00:00

3.5 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
People Component v2.0.0 Active 2018-11-19

People Component

Displays users involved with a specified task

activiti-people

Contents

Basic Usage

<adf-people 
    [people]="YOUR_INVOLVED_PEOPLE_LIST" 
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

Class members

Properties

Name Type Default value Description
people UserProcessModel[] [] The array of User objects to display.
readOnly boolean false Should the data be read-only?
taskId string "" The numeric ID of the task.

Details

How to customize the people component behavior

The people component provides two options to customize its behavior:

  • involveUserAndCloseSearch: The selected user gets added and then the search section is closed
  • involveUserWithoutCloseSearch: The selected user gets added without closing the search section

This makes it easy to customize the people component to involve the user via a single or double click event:

<adf-people #people
    (row-click)="people.involveUserAndCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-single-click-and-close-search

<adf-people #people
    (row-click)="people.involveUserWithoutCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-single-click-without-close-search

<adf-people #people
    (row-dblclick)="people.involveUserAndCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-double-click-and-close-search

<adf-people #people
    (row-dblclick)="people.involveUserWithoutCloseSearch()"
    [people]="YOUR_INVOLVED_PEOPLE_LIST"
    [taskId]="YOUR_TASK_ID"
    [readOnly]="YOUR_READ_ONLY_FLAG">
</adf-people>

involve-people-double-click-without-close-search