mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-05-07 03:28:38 +00:00
Add getCardSize
This commit is contained in:
parent
306a12d1ad
commit
a23fd0526e
@ -36,6 +36,12 @@ class ContentCardExample extends HTMLElement {
|
|||||||
<img src="http://via.placeholder.com/350x150">
|
<img src="http://via.placeholder.com/350x150">
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The height of your card. Home Assistant uses this to automatically
|
||||||
|
// distribute all cards over the available columns.
|
||||||
|
getCardSize() {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
customElements.define('content-card-example', ContentCardExample);
|
customElements.define('content-card-example', ContentCardExample);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user