0.1.1 • Published 3 years ago

calendar_xinonix v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

fullcalendar

Calendar plugin based on FullCalendar. For more information, see the fullcalendar documentation.

Setup

This plugin creates a new viewtemplate which displays a calendar.

You will need a table for your events. It will need several fields:

PurposeTypeRequired?
Title of event to display on the calendarstringyes
Time/date the event startsdateyes
Is this an all-day event?boolno
Duration of the eventfloat or intno

If you want to store your events with a start and end date, rather than a start date and a duration, you can use a calculated field. Create your start and end fields (date type). Then, create a stored calculated field for the duration. Use the formula (end - start) / 1000, where end is your end date and start is your start date. In the view configuration, set the unit to "Seconds".

You can also specify an edit view to create new events and a show/edit view to display when the user clicks an event on the calendar.

Calendar views

When setting up a calendar, you will have the option to specify different view options such as month, week, day, list, etc. You can use any of the default options listed in the "views" section of the fullcalendar documentation.

Advanced users can specify their own views object. You can use your custom views in the other fields when setting up your calendar.

Example of a custom views object:

views: {
  timeGridFourDay: {
    type: 'timeGrid',
    duration: { days: 4 },
    buttonText: '4 day',
  },
}
0.1.1

3 years ago