1. Go to this page and download the library: Download brickx/calendax library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
brickx / calendax example snippets
return [
];
class MyCalendar extends \Brickx\Calendax\Calendax
{
//
}
public function events() : Collection
{
// Return a Laravel collection
}
public function goToPreviousMonth()
public function goToCurrentMonth()
public function goToNextMonth()
public function goToMonth($month, $year = null)
public function onDayClick($year, $month, $day)
{
// This event is triggered when a day is clicked
}
public function onEventClick($eventId)
{
// This event is triggered when an event card is clicked
}
public function onEventDropped($eventId, $year, $month, $day)
{
// This event is triggered when an event is dragged & dropped onto another calendar day
}