tejrajs/yii2-fullcalendar

Just A Fullcalendar Yii2 Widget

Installs: 2 642

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

0.0.2 2015-07-22 11:22 UTC

This package is auto-updated.

Last update: 2024-04-14 15:37:51 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'],
	], 
]); ?>