Add getCardSize

This commit is contained in:
Paulus Schoutsen 2018-06-26 12:35:29 -04:00
parent 306a12d1ad
commit a23fd0526e

View File

@ -36,6 +36,12 @@ class ContentCardExample extends HTMLElement {
<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);