[ADF-2614] Edit icon misses in Info-drawer Assignee (#3145)

* [DW-488] Edit icon misses in Info-drawer Assignee

* * Added unit testcases for the recent changes .

* * Updated card-view doc for the recent changes made.

* * Fixed failing taskHeader testcases
This commit is contained in:
siva kumar
2018-04-06 17:19:38 +05:30
committed by Denys Vuika
parent 38f2973863
commit 313d7f30cf
10 changed files with 85 additions and 5 deletions

View File

@@ -55,6 +55,7 @@ export interface CardViewItem {
type: string;
displayValue: string;
editable?: boolean;
icon?: string;
}
```
@@ -77,7 +78,8 @@ Each of them extends the abstract CardViewBaseItemModel class to add some custom
value: 'Spock',
key: 'name',
default: 'default bar' ,
multiline: false
multiline: false,
icon: 'icon';
}),
new CardViewMapItemModel({
label: 'My map',
@@ -141,6 +143,7 @@ const textItemProperty = new CardViewTextItemModel(options);
| displayValue\* | string | --- | The value to render |
| editable | boolean | false | Whether the property editable or not |
| clickable | boolean | false | Whether the property clickable or not |
| icon | string | The material icon to show against the clickable property |
| multiline | string | false | Single or multiline text |
| pipes | CardViewTextItemPipeProperty\[] | \[] | Pipes to be applied on the displayValue |