Calendar
Last updated
Last updated
FullCalendar is a plug-in for the jQuery library that provides a calendar with various interactive features whose layout and functionalities can be customized.
A typical calendar in our applications looks like this:
Download latest version of FullCalendar from the following link: https://github.com/fullcalendar/fullcalendar/releases
Store the downloaded files in the folder "Plugins" > "fullcalendar" (Create the file if it does not exist yet)
Add the following lines in the "Layout.cshtml" file
The simplest form of the calendar is implemented in the following way:
Additional features can be included within the "{ ... }" brackets. In the following, a couple of features are described.
The following code adds a grid to the Calendar:
The following code lets you add features in the header of the calendar:
This particular code adds a "Previous" Button in the left of the header, a "Next" Button in the right of the header and a Title in the center of the header. You can also change the positions of the features by adding them in the line of the respective position.
Multiple features are separated by a comma:
The above code lets you add both a grid as well as features in the header of the calendar: