diff options
Diffstat (limited to 'static/vevent.ts')
-rw-r--r-- | static/vevent.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/static/vevent.ts b/static/vevent.ts index e0424ad7..c9068106 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -80,6 +80,8 @@ class VEvent { */ registered: Redrawable[] + _calendar: string | null = null; + constructor(properties: Map<string, VEventValue> = new Map(), components: VEvent[] = []) { this.components = components; this.registered = []; @@ -127,6 +129,13 @@ class VEvent { } } + setCalendar(calendar: string) { + this._calendar = calendar; + for (let el of this.registered) { + el.redraw(this); + } + } + register(htmlNode: Redrawable) { this.registered.push(htmlNode); } |