mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [ADF-2526] Test commit of a file with escape tags * [ADF-2526] Fixed interpolation marker issue in doc code samples
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
---
|
|
Added: v2.0.0
|
|
Status: Active
|
|
---
|
|
# People Search component
|
|
|
|
Searches users/people.
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-people-search></adf-people-search>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| results | `Observable<any[]>` | | The parameters to show people list. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| searchPeople | `EventEmitter<any>` | Emitted when a search is performed with a new keyword. |
|
|
| success | `EventEmitter<any>` | Emitted when a user is selected and the action button is clicked. |
|
|
| closeSearch | `EventEmitter<{}>` | Emitted when the "close" button is clicked. |
|
|
|
|
## Details
|
|
|
|
<!-- {% raw %} -->
|
|
|
|
```html
|
|
<adf-people-search
|
|
(searchPeople)="searchUser($event)"
|
|
(success)="involveUser($event)"
|
|
(closeSearch)="onCloseSearch()"
|
|
[results]="peopleSearch$">
|
|
<header-title>{{ 'TASK_DETAILS.LABELS.ADD_PEOPLE' | translate }}</header-title>
|
|
<action-button-label>{{ 'PEOPLE.ADD_USER' | translate }}</action-button-label>
|
|
</adf-people-search>
|
|
```
|
|
|
|
<!-- {% endraw %} -->
|