mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
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)
This commit is contained in:
parent
13b3477c7e
commit
85b16fa89e
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user