--- Added: v2.0.0 Status: Active --- # People Component Displays users involved with a specified task ## Contents - [Basic Usage](#basic-usage) - [Properties](#properties) - [Details](#details) - [How to customize the people component behavior](#how-to-customize-the-people-component-behavior) - [Involve People single click and close search](#involve-people-single-click-and-close-search) - [Involve People single click without close search](#involve-people-single-click-without-close-search) - [Involve People double click and close search](#involve-people-double-click-and-close-search) - [Involve People double double without close search](#involve-people-double-double-without-close-search) ## Basic Usage ```html ``` ![activiti-people](docassets/images/activiti_people.png) ### Properties | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | | people | `any[]` | `[]` | The array of User objects to display. | | taskId | `string` | `''` | The numeric ID of the task. | | readOnly | `boolean` | `false` | Should the data be read-only? | ## Details ### How to customize the people component behavior The people component provide two methods to customize the behavior: - involveUserAndCloseSearch: The selected user is going to be added and the search section closed - involveUserWithoutCloseSearch: The selected user is going to be added without close the search section In this way will be easy customize the people component to involve the user with the single or double click event: ### Involve People single click and close search ```html ``` ![involve-people-single-click-and-close-search](docassets/images/involve-people-single-click-and-close-search.gif) ### Involve People single click without close search ```html ``` ![involve-people-single-click-without-close-search](docassets/images/involve-people-single-click-without-close-search.gif) ### Involve People double click and close search ```html ``` ![involve-people-double-click-and-close-search](docassets/images/involve-people-double-click-and-close-search.gif) ### Involve People double double without close search ```html ``` ![involve-people-double-click-without-close-search](docassets/images/involve-people-double-click-without-close-search.gif)