aboutsummaryrefslogtreecommitdiff
path: root/static/vevent.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 00:47:13 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 00:47:13 +0100
commitecdb4b7eeb42dc859cfd6aa31634b423b72c50bd (patch)
treeb910e8d3c6661f2b7e401ae18097f643d5cdd585 /static/vevent.ts
parentReword popup visible attribute. (diff)
downloadcalp-ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd.tar.gz
calp-ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd.tar.xz
Rework some drawing and how calendar is accessed.
Diffstat (limited to 'static/vevent.ts')
-rw-r--r--static/vevent.ts6
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);
}