From 3d27acd8ac67014bfcac0a452714d2501c3cc7bd Mon Sep 17 00:00:00 2001 From: Bruno Sabot Date: Sat, 23 Nov 2024 17:56:22 +0100 Subject: [PATCH] fix: getLayoutOptions is deprecated for getGridOptions. fixes #29 --- src/streamline-card.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/streamline-card.js b/src/streamline-card.js index c0fe252..b31042a 100644 --- a/src/streamline-card.js +++ b/src/streamline-card.js @@ -179,10 +179,15 @@ import { version } from "../package.json"; return this._card?.getCardSize?.() ?? 1; } + /** @deprecated Use `getGridOptions` instead */ getLayoutOptions() { return this._card?.getLayoutOptions?.() ?? {}; } + getGridOptions() { + return this._card?.getGridOptions?.() ?? {}; + } + createCard() { if (this._templateConfig.card) { this._card = HELPERS.createCardElement(this._config);