mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AAE-15836] Include email in full name pipe if required
This commit is contained in:
@@ -9,6 +9,8 @@ Last reviewed: 2018-11-12
|
||||
|
||||
Joins the first and last name properties from a [`UserProcessModel`](../../core/models/user-process.model.md) object into a single string.
|
||||
|
||||
Optionally it can include the email of the users (if available).
|
||||
|
||||
## Basic Usage
|
||||
|
||||
<!-- {% raw %} -->
|
||||
@@ -21,10 +23,24 @@ Joins the first and last name properties from a [`UserProcessModel`](../../core/
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
## Include the email of the user
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
Project Leader: {{ user | fullName: true }}
|
||||
</div>
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
## Details
|
||||
|
||||
The pipe offers a convenient way to extract the name from a [User process model](../models/user-process.model.md) object.
|
||||
|
||||
If you want to include also the email of the user (when available) by default for your whole application, then you need to provide the injection token `ADF_FULL_NAME_PIPE_INCLUDE_EMAIL` in your angular application module with `true` value.
|
||||
|
||||
## See also
|
||||
|
||||
- [User initial pipe](user-initial.pipe.md)
|
||||
|
||||
Reference in New Issue
Block a user