chintan / yii2-fullcalendar
只是一个Fullcalendar Yii2小部件 3.1
0.0.2
2015-07-22 11:22 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-28 19:52:50 UTC
README
fullcalendar yii2 widget
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一:
php composer.phar require chintan/yii2-fullcalendar
或
"chintan/yii2-fullcalendar": "*"
将以下内容添加到您的composer.json文件的require部分。
用法
安装扩展后,只需在代码中使用即可
<?php use chintan\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'=> ['https:///new_crm_branch/crm/marketing/feed'], ], ]); ?>