<mvc:View controllerName="card-blog.Sample.controller.Dashboard"
xmlns:mvc="sap.ui.core.mvc" displayBlock="true"
xmlns="sap.m"
xmlns:f="sap.f"
xmlns:w="sap.ui.integration.widgets"
xmlns:core="sap.ui.core">
<Shell id="shell">
<App id="app">
<pages>
<Page id="page"
title="{i18n>pageTitle}">
<content>
<f:CardContainer>
<w:Card />
</f:CardContainer>
</content>
</Page>
</pages>
</App>
</Shell>
</mvc:View>
"sap.card": {
"type": "List" //or Analytical
...
}
{
"ListDefaultHeader": {
"sap.card": {
"type": "List",
"header": {
"title": "Title",
"subTitle": "Subtitle",
"icon": {
"src": "sap-icon://accept",
"alt": "AltIcon",
"shape": "Circle",
"text": "IconText",
"backgroundColor": "green",
"color": "#fff"
},
"status": {
"text": "status"
}
}
}
}
}
"ListNumericHeader": {
"sap.card": {
"type": "List",
"header": {
"title": "Title",
"subTitle": "Subtitle",
"type": "Numeric",
"unitOfMeasurement": "g",
"mainIndicator": {
"number": "100",
"trend": "Down", //Down, None or Up
"state": "Critical" //Critical, Error, Good or Neutral
},
"details": "Details",
"sideIndicators": [
{
"title": "SideIndicator1",
"number": "200",
"unit": "mg"
},
{
"title": "SideIndicator2",
"number": "400",
"unit": "mg"
}
]
}
}
}
"content": {
"data": {
"json": [
{
"title": "Item1 Title",
"description": "Item1 Description",
"info": "Item1 Info",
"state": "Error"
},
{
"title": "Item2 Title",
"description": "Item2 Description",
"info": "Item2 Info",
"state": "Warning"
},
{
"title": "Item3 Title",
"description": "Item3 Description",
"info": "Item3 Info",
"state": "Success"
}
]
},
"item": {
"title": {
"label": "TitleLabel",
"value": "{title}"
},
"description": {
"label": "DescLabel",
"value": "{description}"
},
"info": {
"label": "InfoLabel",
"value": "{info}",
"state": "{state}" //Error, Success, Warning or None
},
"highlight": "{state}", //Error, Success, Warning, None or Information
"icon": {
"src": "sap-icon://action",
"alt": "AltIcon",
"shape": "Circle", //Square or Circle
"text": "IconText",
"backgroundColor": "green",
"color": "#fff"
}
}
}
"data": {
"request": {
"mode": "cors", //no-cors, same-origin or cors
"method": "GET", //GET or POST
"parameters": {
"type": "1"
},
"headers": {
"x-csrf-token": "123456789"
},
"url": "https://urltest.com/test"
},
"path": "/Items"
}
The analytical card is used for data visualization. It consists of two areas – a header area (either a standard header or a KPI header) and a chart area with a visual representation of the data.
"content": {
"data": {
"json": [
{
"Dimension": "Dimension1",
"Measure": 1
},
{
"Dimension": "Dimension2",
"Measure": 2
},
{
"Dimension": "Dimension3",
"Measure": 3
}
]
},
"chartType": "Line", //Line, StackedColumn, StackedBar or Donut
"legend": {
"visible": true,
"position": "Top", //Top, Bottom, Left, Right
"alignment": "Center" //TopLeft, Center
},
"plotArea": {
"dataLabel": {
"visible": true,
"showTotal": true
},
"categoryAxisText": {
"visible": true
},
"valueAxisText": {
"visible": true
}
},
"title": {
"visible": true,
"text": "Chart title",
"alignment": "Left" //Left, Center, Right
},
"measureAxis": "valueAxis",
"dimensionAxis": "categoryAxis",
"dimensions": [
{
"label": "Dimension1",
"value": "{Dimension}"
}
],
"measures": [
{
"label": "Measure1",
"value": "{Measure}"
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
14 | |
11 | |
10 | |
10 | |
10 | |
7 | |
6 | |
5 | |
5 |