mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4219] Multivalue Metadata Card View (#4600)
* [ADF-4219] Multivalue Metadata Card View * [ADF-4219] Add documentation * [ADF-4219] Improve code, docs and tests * [ADF-4219] Fix e2e tests
This commit is contained in:
committed by
Eugenio Romano
parent
21fd0299bd
commit
8395b0baa5
39
docs/core/pipes/multi-value.pipe.md
Normal file
39
docs/core/pipes/multi-value.pipe.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# [Multi Value Pipe](../../../lib/core/pipes/multi-value.pipe.ts "Defined in multi-value.pipe.ts")
|
||||
|
||||
Takes an array of strings and turns it into one string where items are separated by a separator. The default separator applied to the list is `', '`, however, you can set your own separator in the params of the pipe.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
### Default separator
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
List {{ values | multiValue }}
|
||||
</div>
|
||||
```
|
||||
|
||||
#### Result
|
||||
|
||||

|
||||
|
||||
### Custom separator
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
List {{ values | multiValue: ' :) ' }}
|
||||
</div>
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
#### Result
|
||||
|
||||

|
||||
|
||||
## Details
|
||||
|
||||
The pipe gets every one of the items passed to the pipe and stringifies it adding the separator set in the configuration.
|
||||
|
||||
You will need to specify the separator you want to use for it to work.
|
Reference in New Issue
Block a user