Our pure JavaScript Scheduler component


Post by chabgui@gmail.com »

Hello,
First of all congratulations for your work, your scheduler is great!

I would like the timeline to start on Monday rather than Sunday, is it possible?

I created a preset with display of the numbers of weeks and French dates (MM / YYYY on 1.png) but when one changes the level of zoom I lose this formatting (YYYY-MM on 2.png and YYYY-MM-DD on 3.png ). how can I do ?

Thank you for your answers !
Attachments
3.png
3.png (20.37 KiB) Viewed 1322 times
2.png
2.png (15.1 KiB) Viewed 1322 times
1.png
1.png (17.43 KiB) Viewed 1322 times

Post by saki »

Did you try to set weekStartDay or set a different locale?

Post by chabgui@gmail.com »

yes.
weekStartDay work for the agenda widget but not the sheduler itself.
my local works.

Post by mats »

Could you please provide a basic test case that we can inspect?

Post by chabgui@gmail.com »

this is my custom view :
 customView = {
        start: 1,
        weekStartDay: 1,
        tickWidth: 20,
        tickHeight: 50,
        displayDateFormat: 'll',
        shiftUnit: 'week',
        shiftIncrement: 1,
        defaultSpan: 10,
        timeResolution: {
            unit: 'day',
            increment: 1
        },
        columnLinesFor: 'bottom',
        headerConfig: {
            bottom: {
                unit: 'day',
                dateFormat: 'd1',
                verticalColumnWidth: 25
            },
            middle: {
                unit: 'week',
                renderer: (start, end, headerConfig, index) => {
                    return 'S ' + _moment(start).week();
                },
                verticalColumnWidth: 115,
            },
            top: {
                unit: 'month',
                dateFormat: 'MMM YYYY',
            },
        }
    };

Post by Maxim Gorkovsky »

Hello.
weekStarDay is a config on a panel, not on the preset

Post by chabgui@gmail.com »

ok thanks !
I found my mistake :
this.scheduler.schedulerengine.weekStartDay = 1
works but this causes an angular error.
this.scheduler.schedulerEngine['weekStartDay'] = 1;
works fine.

Post Reply