mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1841] Content Metadata first iteration (#2666)
* First try * Small layout changes * Add pipe support for CardViewTextItemModel * property service * Additional stuff * Make CardViewUpdateService smarter * Content metadata saving * Rebase fix * CardView Style fixes * Fix core and content-services tests * Fix CardView text item update UX
This commit is contained in:
committed by
Eugenio Romano
parent
15cbd3a316
commit
4b76e6b4a9
@@ -129,6 +129,26 @@ const textItemProperty = new CardViewTextItemModel(options);
|
||||
| editable | boolean | false | Whether the property editable or not |
|
||||
| clickable | boolean | false | Whether the property clickable or not |
|
||||
| multiline | string | false | Single or multiline text |
|
||||
| pipes | CardViewTextItemPipeProperty[] | [] | Pipes to be applied on the displayValue |
|
||||
|
||||
##### Using pipes in Card Text Item
|
||||
|
||||
You can use pipes for text items almost the same way as you would do it in your template. You can provide an array of pipes with additional pipeParameters like this:
|
||||
|
||||
```js
|
||||
const myWonderfulPipe1: PipeTransform = <whatever PipeTransform implmentation>;
|
||||
const myWonderfulPipe2: PipeTransform = <whatever PipeTransform implmentation>;
|
||||
|
||||
new CardViewTextItemModel({
|
||||
label: 'some label',
|
||||
value: someValue,
|
||||
key: 'some-key',
|
||||
pipes: [
|
||||
{ pipe: myWonderfulPipe1, params: ['first-param', 'second-param'] },
|
||||
{ pipe: myWonderfulPipe2, params: ['first-param', 'second-param'] }
|
||||
]
|
||||
});
|
||||
```
|
||||
|
||||
#### Card Map Item
|
||||
|
||||
|
Reference in New Issue
Block a user