diff --git a/packages/aurelia-gridstack/src/elements/grid-stack/grid-stack.ts b/packages/aurelia-gridstack/src/elements/grid-stack/grid-stack.ts index a2a3995..2ffbbe9 100644 --- a/packages/aurelia-gridstack/src/elements/grid-stack/grid-stack.ts +++ b/packages/aurelia-gridstack/src/elements/grid-stack/grid-stack.ts @@ -31,6 +31,16 @@ export class GridStack { return this.float || this.float === '' ? true : false; } + @bindable + static: string | boolean | undefined; + staticChanged() { + this.grid?.setStatic(this.getStatic()); + } + + getStatic() { + return this.static || this.static === '' ? true : false; + } + @bindable options: gs.GridStackOptions;