![scriptcase oncalendarapplicationinit scriptcase oncalendarapplicationinit](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/app/comum/ligacao/ligacao_edicao/ligacao_edicao_control.png)
This time it's a different class that represents the month view which uses a different layout. The monthly calendar view is built using DayPilot.Month class. This way, we will avoid the overhead of creating and destroying the calendar instances when switching views.Īs you can see, the configuration is very simple - the only property we define is the viewType.Ĭonst week = new DayPilot.Calendar("dpWeek") When switching between view, we will simply hide or show the instances as needed. This allows us to work with both instances at once. However, this time it uses a different placeholder div ( id="dpWeek") and it creates a different instance (stored as week variable). You can see that the weekly calendar is built using the same DayPilot.Calendar component.
![scriptcase oncalendarapplicationinit scriptcase oncalendarapplicationinit](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/app/form/paginas_configuracao_execucao.png)
The weekly calendar is built using DayPilot.Calendar class with viewType set to "Week". The DayPilot.Calendar instance is stored as day JavaScript variable.Ĭonst day = new DayPilot.Calendar("dpDay") The daily calendar will be rendered in a placeholder which is marked with id="dpDay". Users can access the remaining hours using a vertical scrollbar. By default, the viewport is limited to business hours (predefined as 9 a.m. This view displays a calendar for 24 hours of a single day. The daily calendar view is built using DayPilot.Calendar class with viewType set to "Day".
SCRIPTCASE ONCALENDARAPPLICATIONINIT PRO
You can use the source code of the tutorial if you are a licensed user of DayPilot Pro for JavaScript.
SCRIPTCASE ONCALENDARAPPLICATIONINIT LICENSE
Licensed for testing and evaluation purposes. Please see the license agreement included in the sample project. PHP backend that provides access to the database using REST API Simplified calendar data loading using the built-in events.load() method This tutorial uses the event calendar, monthly calendar, and date navigator components from DayPilot Pro package to build a simple HTML5/JavaScript calendar application with integrated day, week, and month views.ĭaily, weekly and monthly event calendars that provide different views of the same dataĭate navigator for changing the current dateĪll calendar components support drag and drop event creating, moving and resizing