From 85b16fa89e675c7a7ff80d9cecec8ed7788db1b8 Mon Sep 17 00:00:00 2001 From: Clay Benson Date: Mon, 24 Mar 2025 12:23:12 -0400 Subject: [PATCH] Update documentation for adding new actions for heading entity badges (#38112) * feat: Add documentation to support hold_action and double_tap_action on heading entity badges. https://github.com/home-assistant/frontend/pull/24707 * chore: Add callout in Heading badges intro to note that they support actions (like the card intro does in this file) --- source/_dashboards/heading.markdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/_dashboards/heading.markdown b/source/_dashboards/heading.markdown index 3c325d36a6f..9a444048546 100644 --- a/source/_dashboards/heading.markdown +++ b/source/_dashboards/heading.markdown @@ -60,7 +60,7 @@ badges: ## Heading badges -In addition to the heading text, each heading card can show small badges. They are smaller than regular [badges](/dashboards/badges/) and don't have a background. The heading badges can display sensor information in a compact and minimal style. +In addition to the heading text, each heading card can show small badges. They are smaller than regular [badges](/dashboards/badges/) and don't have a background. The heading badges can display sensor information in a compact and minimal style. Heading badges also support [actions](/dashboards/actions/). ```yaml type: entity @@ -108,4 +108,12 @@ tap_action: required: false description: Action taken on card tap. See [action documentation](/dashboards/actions/#tap-action). By default, it will do nothing. type: map +hold_action: + required: false + description: Action taken on card hold. See [action documentation](/dashboards/actions/#hold-action). By default, it will do nothing. + type: map +double_tap_action: + required: false + description: Action taken on card double tap. See [action documentation](/dashboards/actions/#double-tap-action). By default, it will do nothing. + type: map {% endconfiguration %}