From a23fd0526e27105a672f1823f18bed945c77a7d9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 26 Jun 2018 12:35:29 -0400 Subject: [PATCH] Add getCardSize --- docs/lovelace_custom_card.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/lovelace_custom_card.md b/docs/lovelace_custom_card.md index 40b372b9..d8c92f25 100644 --- a/docs/lovelace_custom_card.md +++ b/docs/lovelace_custom_card.md @@ -36,6 +36,12 @@ class ContentCardExample extends HTMLElement { `; } + + // 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);