Skip to content

Commit

Permalink
fix: getLayoutOptions is deprecated for getGridOptions. fixes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosabot committed Nov 23, 2024
1 parent 5aca2d4 commit 3d27acd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/streamline-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d27acd

Please sign in to comment.