summaryrefslogtreecommitdiff
path: root/web/src/components/grid/index.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-11-06 22:31:12 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-11-06 22:31:12 +0200
commit6ea86b1b56aebbae7edeb37b01d7bf5cd145bf60 (patch)
treebfd0178097a56087471543950caebed5f8280040 /web/src/components/grid/index.ts
parentdad5b47f0bb480532043df8d488f5609f731b00d (diff)
feat(web): change subvisions
Diffstat (limited to 'web/src/components/grid/index.ts')
-rw-r--r--web/src/components/grid/index.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/src/components/grid/index.ts b/web/src/components/grid/index.ts
index 78bb14e..3189409 100644
--- a/web/src/components/grid/index.ts
+++ b/web/src/components/grid/index.ts
@@ -12,7 +12,16 @@ import { extendSelection, GridSelection } from "./selection";
export class NotiveGridElement extends NotiveElement {
#internals: ElementInternals = this.attachInternals();
- grid?: RenderedGrid;
+ #grid?: RenderedGrid;
+
+ get grid(): RenderedGrid | undefined {
+ return this.#grid;
+ }
+
+ set grid(grid: RenderedGrid | undefined) {
+ this.#grid = grid;
+ this.draw();
+ }
#selection?: GridSelection;