* Updated doc

This commit is contained in:
sivakumar414ram
2019-12-13 13:53:18 +05:30
parent 86bd37b159
commit 1ea7efab8e

View File

@@ -90,7 +90,10 @@ Defining properties from Typescript:
new CardViewArrayItemModel({
label: 'Array of items',
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',
default: 'Empty',
noOfItemsToDisplay: 2
@@ -358,7 +361,7 @@ const arrayItemProperty = new CardViewArrayItemModel(items);
| label\* | string | | Item label |
| key\* | string | | Identifying key (important when editing the item) |
| 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