-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest2.json
88 lines (88 loc) · 1.93 KB
/
manifest2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"_version": "1.17.0",
"sap.app": {
"id": "card.explorer.format.unit",
"type": "card",
"title": "Sample for Unit Formatters",
"subTitle": "Sample for Unit Formatters",
"applicationVersion": {
"version": "1.0.0"
},
"shortTitle": "A short title for this Card",
"info": "Additional information about this Card",
"description": "A long description for this Card",
"tags": {
"keywords": [
"Unit",
"Formatter",
"Card",
"Sample"
]
}
},
"sap.card": {
"type": "List",
"configuration": {
"parameters": {
"cardUnitType": {
"value": "length-kilometer",
"type": "string",
"label": "Unit of length",
"description": "The unit of length in which all distances will be displayed."
}
}
},
"header": {
"title": "Fleet management",
"subTitle": "Company vehicles located further than {= format.unit(150, ${parameters>/cardUnitType/value}, 'de')} from base are highlighted in red",
"icon": {
"src": "sap-icon://desktop-mobile"
},
"status": {
"text": "4 of 5"
}
},
"content": {
"data": {
"json": [
{
"Name": "Cargo truck",
"image": "sap-icon://shipping-status",
"Distance": 155
},
{
"Name": "Tow truck",
"image": "sap-icon://vehicle-repair",
"Distance": 30
},
{
"Name": "Company bus",
"image": "sap-icon://bus-public-transport",
"Distance": 130
},
{
"Name": "Maintenance truck",
"image": "sap-icon://inventory",
"Distance": 169
},
{
"Name": "Company car",
"image": "sap-icon://car-rental",
"Distance": 140
}
]
},
"maxItems": 4,
"item": {
"title": "{Name}",
"description": "Distance from base:",
"highlight": "{= ${Distance} < 150 ? 'Success' : 'Error'}",
"icon": {
"src": "{image}"
},
"info": {
"value": "{= format.unit(${Distance}, ${parameters>/cardUnitType/value})}"}
}
}
}
}