kriss/yii2-calendar-schedule Yii2 Calendar Schedule

extensioncalendarfullcalendarschedule

Yii2 FullCalendar Schedule

Yii2 FullCalendar Schedule

Installation

composer require kriss/yii2-calendar-schedule

Tip

master is in 2.x, want 1.x ? see 1.x branch

Usage

use kriss\calendarSchedule\widgets\FullCalendarWidget;
use kriss\calendarSchedule\widgets\processors\EventProcessor;
use kriss\calendarSchedule\widgets\processors\HeaderToolbarProcessor;
use kriss\calendarSchedule\widgets\processors\LocaleProcessor;

echo FullCalendarWidget::widget([
    'calendarRenderBefore' => "console.log('before', calendar)",
    'calendarRenderAfter' => "console.log('after', calendar)",
    'clientOptions' => [
        // all options from fullCalendar
    ],
    'processors' => [
        // quick solve fullCalendar options
        new LocaleProcessor([
            'locale' => 'zh-cn',
        ]),
        new HeaderToolbarProcessor(),
        new EventProcessor([
            // use Array
            /*'events' => [
                ['title' => 'aaa', 'start' => time(), 'end' => time() + 10 * 3600],
            ],*/
            // use Ajax
            'events' => ['site/events'], // see FullCalendarEventsAction
        ]),
    ],
]);

more see https://github.com/krissss/yii2-calendar-schedule/blob/master/demos

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v2.1 is the latest of 4 releases



MIT license
Stats
9 github stars & 6 github forks
6 downloads in the last day
190 downloads in the last 30 days
3852 total downloads