Skip to content

Commit

Permalink
feat(grid-stack): adds static property
Browse files Browse the repository at this point in the history
enables the setStatic method on the gridstack object
  • Loading branch information
groemhildt committed Aug 22, 2022
1 parent f6058d2 commit 5bad0fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/aurelia-gridstack/src/elements/grid-stack/grid-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5bad0fb

Please sign in to comment.