We are using the TimeRange to display a "Now" line which shows the current time for a location in a different timezone.
Printscreen: https://www.dropbox.com/s/b1sv0rd9wnddxd6/Snipaste_2022-09-01_17-03-05.png?dl=0
I'm aware that Bryntum has this feature natively, but that doesn't work with different timezones (I'm referring to 'showCurrentTimeLine' property).
So we have this "Now" timeRange entry and I'm using a timer to update it every 1 minute. But every time we change the start date, it issues a call to the server. Which I would like to avoid.
I know I should create a new modelClass for the TimeRangeStore and set "startDate" as persist: false, but I cannot find a way to do this, can you help?
We are using the Calendar with the Scheduler (in the timeline mode).
In the past I've done something similar for the resourceStore, like below:
crudManager : {
eventStore : {
modelClass : Screening,
singleAssignment: true
},
resourceStore : {
modelClass: Screen,
},
where Screen is defined as:
class Screen extends ResourceModel {
static get fields() {
return [
{ name : 'name', type : 'string' },
{ name : 'eventColor', type : 'string' },
{ name : 'selected', type : 'number', defaultValue : 0, persist: false },
];
}
}