diff --git a/vertical-stack-in-card.js b/vertical-stack-in-card.js index 8349132..d809197 100644 --- a/vertical-stack-in-card.js +++ b/vertical-stack-in-card.js @@ -180,10 +180,23 @@ class VerticalStackInCard extends HTMLElement { const sizes = await Promise.all(this._refCards.map(this._computeCardSize)); return sizes.reduce((a, b) => a + b, 0); } -} -customElements.define('vertical-stack-in-card', VerticalStackInCard); + static getConfigElement() { + return customElements.get('hui-vertical-stack-card').getConfigElement(); + } -window.customElements.get('vertical-stack-in-card').getConfigElement = function() { - return document.createElement('hui-stack-card-editor'); + static getStubConfig() { + return { + cards: [], + }; + } } + +customElements.define('vertical-stack-in-card', VerticalStackInCard); +window.customCards = window.customCards || []; +window.customCards.push({ + type: 'vertical-stack-in-card', + name: 'Vertical Stack In Card', + description: 'Group multiple cards into a single sleek card.', + preview: false, +}); \ No newline at end of file