How it works...

The calendar view needs to be passed the field names in the date_start and date_stop attributes to indicate which fields to look at when building the visual representation. Only use fields with the Datetime or Date type, other types of fields will not work and will instead generate an error. While date_start is required, you can leave out date_stop and set the date_delay attribute instead, which is expected to be a Float field that represents the duration in hours.

The calendar view allows you to give records that have the same value in a field the same (arbitrarily-assigned) color. To use this functionality, set the color attribute to the name of the field you need. In our example, we can see at a glance which tasks belong to the same project, because we assigned project_id as the field to determine the color groups.

The fields you name in the calendar element's body are shown within the block that represents the time interval covered, separated by commas.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset