mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* Updated doc
This commit is contained in:
@@ -90,7 +90,10 @@ Defining properties from Typescript:
|
|||||||
new CardViewArrayItemModel({
|
new CardViewArrayItemModel({
|
||||||
label: 'Array of items',
|
label: 'Array of items',
|
||||||
value: '',
|
value: '',
|
||||||
items$: of(['One', 'Two', 'Three', 'Four']),
|
items$: of([
|
||||||
|
{ icon: 'person', value: 'One' }, { icon: 'person', value: 'Two' },
|
||||||
|
{ icon: 'person', value: 'Three' }, { icon: 'person', value: 'Four' }
|
||||||
|
]),
|
||||||
key: 'array',
|
key: 'array',
|
||||||
default: 'Empty',
|
default: 'Empty',
|
||||||
noOfItemsToDisplay: 2
|
noOfItemsToDisplay: 2
|
||||||
@@ -358,7 +361,7 @@ const arrayItemProperty = new CardViewArrayItemModel(items);
|
|||||||
| label\* | string | | Item label |
|
| label\* | string | | Item label |
|
||||||
| key\* | string | | Identifying key (important when editing the item) |
|
| key\* | string | | Identifying key (important when editing the item) |
|
||||||
| editable | boolean | false | Toggles whether the item is editable |
|
| editable | boolean | false | Toggles whether the item is editable |
|
||||||
| value | [`Observable`](http://reactivex.io/documentation/observable.html)<`string`\[]> | | The original data value for the item |
|
| value | [`Observable`](http://reactivex.io/documentation/observable.html)<[`CardViewArrayItem`](../../../lib/core/card-view/models/card-view-arrayitem.model.ts)\[]> | | The original data value for the item |
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user