Calendar start time

Topics related to AppGini plugins/add-ons go here.
Post Reply
AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Calendar start time

Post by AhmedBR » 2022-09-02 19:31

Hi,

Does anybody know to how to change the start time of the calendar?
calendar.png
calendar.png (25.31 KiB) Viewed 1395 times
Thanks
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

User avatar
zibrahim
Veteran Member
Posts: 137
Joined: 2020-01-28 18:30
Location: Malaysia

Re: Calendar start time

Post by zibrahim » 2022-09-02 23:37

Hi there,
Open your hooks/calendar-CALENDARNAME.php file and look for

Code: Select all

height: 'auto', // https://fullcalendar.io/docs/height
contentHeight: 'auto', // https://fullcalendar.io/docs/contentHeight
aspectRatio: 2.5, // https://fullcalendar.io/docs/aspectRatio
(somewhere at line 56)
Add the following code below the "aspectRatio: 2.5......"

Code: Select all

minTime: '09:00:00', // THIS IS min time in day grid
maxTime: '18:00:00', // THIS IS max time in day grid
to become like this...

Code: Select all

height: 'auto', // https://fullcalendar.io/docs/height
contentHeight: 'auto', // https://fullcalendar.io/docs/contentHeight
aspectRatio: 2.5, // https://fullcalendar.io/docs/aspectRatio
minTime: '09:00:00', // THIS IS min time in day grid
maxTime: '18:00:00', // THIS IS max time in day grid
Change the minTime and maxTime value according to your requirement.
Hope this help.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Calendar start time

Post by AhmedBR » 2022-09-03 01:05

Thanks zibrahim, that worked nicely.
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: Calendar start time

Post by SkayyHH » 2022-10-30 08:25

Hi, I would like to give you a hint about the AppGini calendar. There is a problem here if you use the calendar with different user authorizations like me. If the calendar is set up for a table for which the current user does not have permission, the calendar will produce 403 errors. The errors slow down the loading of the calendar content and massively inflate the log file. Better to use different calendar settings for different user groups.

Post Reply