tecnocen/yii2-fullcalendar
Composer 安装命令:
composer require tecnocen/yii2-fullcalendar
包简介
Yii2 Widgets for the Full Callendar javascript calendar
README 文档
README
Widget that implements the fullcalendar plugin for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist "tecnocen/yii2-fullcalendar:*"
or add
"tecnocen/yii2-fullcalendar": "*"
to the require section of your composer.json file.
Usage
Calendar
This is the basic widget which encapsulates the plugin into a yii\base\Widget implementation.
use tecnocen\fullcalendar\widgets\Fullcalendar; echo Fullcalendar::widget([ // 'lang' => 'es', 'options' => [ // HTML attributes for the container. // the `tag` option is specially handled as the HTML tag name ], 'clientOptions' => [ // JS Options to be passed to the `calendar()` plugin. // see http://fullcalendar.com/#Documentation/Options ], 'clientEvents' => [ // JS Events for the `calendar()` plugin. // see http://fullcalendar.com/#Documentation/Events ] ]);
Language
The fullcalendar plugin provides the [following languages]
(https://github.com/fullcalendar/fullcalendar/tree/master/lang),
Fullcalendar and ActiveCalendar support automatic translations using the
$lang class property which automatically will load the required js file
and customize the plugin call.
echo Fullcalendar::widget([ 'options' => ['id' => 'es-calendar'], 'lang' => 'es', ]);
Will add the JS File es.js to the view and run
jQuery('#es-calendar').calendar({"lang":"es"});
ActiveFullCalendar
AjaxFullCalendar
On the browser.
Documentation
TODO
License
The BSD License (BSD). Please see License File for more information.
统计信息
- 总下载量: 2.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-07-05