Hide Card

HideCard action type is used to hide a card, which was opened by a preceding ShowCard action.

Default behavior: Closes the dialog in which the card is opened.

Experimental feature since version 1.112. The API may change.

Parameters

This actions doesn't have parameters.

Examples

Example how to hide a card that was shown by the ShowCard action:

{
	"sap.app": {
		"id": "card.explorer.actions.showHideDetailsCard",
		"type": "card",
	},
	"sap.card": {
		"type": "Object",
		"configuration": {
			"parameters": {
				"orderId": {
					"value": ""
				}
			}
		},
		"data": {
			...
		},
		"header": {
			"data": {
				"path": "/value/0"
			},
			"icon": {
				"src": "sap-icon://sap-ui5"
			},
			"title": "Order for {ShipName}",
			"subTitle": "ID {parameters>/orderId/value}"
		},
		"content": {
			"groups": [
				{
					"items": [
						{
							"label": "Name",
							"value": "{ShipName}"
						},
						{
							"label": "Address",
							"value": "{ShipAddress}"
						},
						{
							"label": "Country",
							"value": "{ShipCountry}"
						},
						{
							"label": "City",
							"value": "{ShipCity}"
						},
						{
							"label": "Postal code",
							"value": "{ShipPostalCode}"
						}
					]
				}
			]
		},
		"footer": {
			"actionsStrip": [
				{
					"text": "Close",
					"buttonType": "Emphasized",
					"actions": [
						{
							"type": "HideCard"
						}
					]
				}
			]
		}
	}
}
Try it Out