Skip to content

Commit 0b2e058

Browse files
authored
Add blog post for custom tile features (#1697)
1 parent c471f4e commit 0b2e058

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
author: Paul Bottein
3+
authorURL: https://github.com/piitaya
4+
authorTwitter: piitaya
5+
title: Custom tile features
6+
---
7+
8+
In the Home Assistant Core 2022.3 release, we add custom features for the [tile card](https://www.home-assistant.io/dashboards/tile/). If you are a developer of custom cards, you can now build your own features to the tile card instead of building a whole card.
9+
10+
![Screenshot showing example of custom tile feature](/img/en/blog/2023-02-28-custom-tile-features/example.png)
11+
12+
```yaml
13+
type: tile
14+
entity: button.push
15+
features:
16+
- type: custom:button-press-tile-feature
17+
```
18+
19+
Custom tile features can even be added to the tile card editor like any other built-in tile feature using similar syntax as custom cards.
20+
21+
```js
22+
window.customTileFeatures = window.customTileFeatures || [];
23+
window.customTileFeatures.push({
24+
type: "button-press-tile-feature",
25+
name: "Button press",
26+
});
27+
```
28+
29+
For more details, see the [custom tile features](/docs/frontend/custom-ui/custom-card/#tile-features) documentation.
7.54 KB
Loading

0 commit comments

Comments
 (0)