Premium support for our pure JavaScript UI components


Post by guillaume.morin »

How can we change the date format of schedulerTooltip to remove the time portion ?

I didn't find anything in here:
https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/ScheduleTooltip

I know I could could use generateTipContent(), but I'd like to keep the nice little calendar image.

2023-03-16_14-34.png
2023-03-16_14-34.png (98.41 KiB) Viewed 129 times

Post by Animal »

The Scheduler's displayDateFormat is ingested from the ViewPreset as you move through them while zooming.

You could use

Object.defineProperty(myScheduler, 'displayDateFormat', {
    set(d) {}, // Don't allow the ViewPreset processing to set it
    get() {
        // return what we want
    }
});

Post by Animal »

In fact that's overcomplicated.

Just

myScheduler.displayDateFormat = '...';

will override the opinion of any ViewPreset


Post by guillaume.morin »

Default format was 'll LST', setting it to 'll' did the trick, thanks !

myScheduler.displayDateFormat = 'll';

Post Reply