Card Header Dynamic Counter

Item based cards (List, Table and Timeline) add the possibility to create a dynamic counter in the header. The dynamic counter changes based on the number of visible items in the card or the language.

Examples

Using header status text along with predefined translation key and a dynamic parameter:

{
	"sap.app": {
		"id": "card.explorer.dynamic.counter.card",
		"type": "card",
		"i18n": "i18n/i18n.properties",
		"applicationVersion": {
			"version": "1.0.0"
		}
	},
	"sap.card": {
		"header": {
			...
			"status": {
				"text": {
					"format": {
						"translationKey": "i18n>CARD.COUNT_X_OF_Y",
						"parts": [
							"parameters>/visibleItems",
							"/count"
						]
					}
				}
			}
		},
		"content": {
			"maxItems": 2,
			"item": {
				....
			}
		}
	}
}
Try it Out