diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-15 00:47:13 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-15 00:47:13 +0100 |
commit | ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd (patch) | |
tree | b910e8d3c6661f2b7e401ae18097f643d5cdd585 /static/vevent.ts | |
parent | Reword popup visible attribute. (diff) | |
download | calp-ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd.tar.gz calp-ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd.tar.xz |
Rework some drawing and how calendar is accessed.
Diffstat (limited to '')
-rw-r--r-- | static/vevent.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/vevent.ts b/static/vevent.ts index ddabb507..4f47f8e3 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -129,13 +129,17 @@ class VEvent { } } - setCalendar(calendar: string) { + set calendar(calendar: string | null) { this._calendar = calendar; for (let el of this.registered) { el.redraw(this); } } + get calendar(): string | null { + return this._calendar; + } + register(htmlNode: Redrawable) { this.registered.push(htmlNode); } |