tejrajs / yii2-fullcalendar
Just A Fullcalendar Yii2 Widget
Installs: 2 648
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-02-14 17:36:04 UTC
README
fullcalendar yii2 widget
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tejrajs/yii2-fullcalendar "dev-master"
or add
"tejrajs/yii2-fullcalendar": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php use tejrajs\fullcalendar\FullCalendar; ?> <?= FullCalendar::widget([ 'options'=>['id'=>'calender'], 'config' => [ 'header' => ['left'=>'prev,next today','center'=> 'title','right'=> 'month,agendaWeek,agendaDay'], 'defaultDate' => date('Y-m-d'), 'editable' => true, 'lang' => 'en-gb', // optional, if empty get app language // put your options and callbacks here // see http://arshaw.com/fullcalendar/docs/ //@eg 'eventSources'=> ['http://localhost/new_crm_branch/crm/marketing/feed'], ], ]); ?>