ArtiGrid
v1.8

Calendar


<?php
    $grid = new ArtiGrid();
    $grid->table('events')
        ->modal(true)
        ->required(false)
        ->calendar([
            'titleField'  => 'title',
            'startField'  => 'start_date',
            'endField'    => 'end_date',
            'colorField'  => 'color',
            'allDayField' => 'all_day',
            'initialView' => 'dayGridMonth',
            'locale'      => 'en',
        ])
        ->colorPicker('color', [
            'palette' => '#3788d8 #28a745 #dc3545 #fd7e14',
            'format'  => 'hex',
            'position'=> 'fixed'
        ])
        ->fieldType('start_date', 'datetime')
        ->fieldType('end_date', 'datetime')
        ->fieldType('description', 'textarea')
        ->fieldType('all_day', 'checkbox')
        ->columnHide(['created_at', 'updated_at'])
        ->validation_required('title');

    echo $grid->render('calendar');
?>
events