Add support for modal option for event in calender page block

This commit is contained in:
Kelani Tolulope
2023-04-12 15:56:05 +02:00
committed by Jože Fortun
parent 1c4c4c4a29
commit 4e49034f5e
4 changed files with 43 additions and 2 deletions
@@ -38,6 +38,7 @@ class CalendarOptions {
public refreshRate = 0
public showRefresh = false
public magnifyOption = ''
public eventDisplayOption = 'sameTab'
}
/**
@@ -63,7 +64,7 @@ export class PageBlockCalendar extends PageBlock {
Apply(this.options, o, Boolean, 'showRefresh')
Apply(this.options, o, String, 'magnifyOption')
Apply(this.options, o, String, 'magnifyOption', 'eventDisplayOption')
this.options.defaultView = PageBlockCalendar.handleLegacyView(o.defaultView) || 'dayGridMonth'
this.options.feeds = (o.feeds || []).map(f => new Feed(f))