Displaying Calendar Items"

From Documentation
Line 11: Line 11:
  
 
= Create a CalendarModel =
 
= Create a CalendarModel =
 +
For most cases, the default implementation, SimpleCalendarModel, is enough.
  
 
= Assign the Model to Calendars=
 
= Assign the Model to Calendars=

Revision as of 06:38, 20 January 2021


DocumentationZK Calendar EssentialsDisplaying Calendar Items
Displaying Calendar Items



Component in MVC Pattern

In the component perspective, Calendars is designed in MVC pattern:

  • Calendars (Controller): receive UI events, calling event listeners
  • CalendarModel (Model): stores CalendarItem
  • ContentRenderer (View): renders a calender-related data to the client-side upon CalendarModel

Base on this architecture, if you want to show some items on a Calendar, you need to create some CalendarItem in a CalendarModel and assign it to Calendars.

Create a CalendarModel

For most cases, the default implementation, SimpleCalendarModel, is enough.

Assign the Model to Calendars

The example project is at Github


Last Update : 2021/01/20

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.