Calendar Report: Set first day to Monday

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 888
Location: Switzerland

Calendar Report: Set first day to Monday

Post by mpol_ch »

Hi,
I am testing the calendar report and want to set the first to Monday.
Currently it is set to Sunday.

I am usind the following code to set it to monday in page_load event

$this->FullCalendar->setOption('firstDay', 1);

But this is not helping.
Where should I put this code to get the first day as Monday?


mobhar
User
Posts: 11905

Post by mobhar »

You may simply put the following code in Page_Head server event:

<script>
    ew.calendarOptions.fullCalendarOptions.firstDay = 1; // 0 = Sunday, 1 = Monday
</script>

mpol_ch
User
Posts: 888
Location: Switzerland

Post by mpol_ch »

Perfect.

Thanky you.

mpol_ch


mapp11
User
Posts: 3

Post by mapp11 »

the code

<script>
    ew.calendarOptions.fullCalendarOptions.firstDay = 1; // 0 = Sunday, 1 = Monday
</script>

show the error: syntax error, unexpected token "<", expecting end of file
help me please


arbei
User
Posts: 9719

Post by arbei »

You may find out the exact location of the syntax error in your browser's Console panel. The code you posted does not have syntax error.


Post Reply