Yii框架2.0版本的Widget,用于使用FullCalendar

安装次数: 140

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 15

语言:JavaScript

类型:yii2-extension

v2.2.3.3 2014-12-12 17:02 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:17:20 UTC


README

为Yii框架2.0版本提供Widget,用于使用FullCalendar(版本2.2.3),基于yii2-talma-fullcalendar-widget

安装

安装此扩展的首选方式是通过composer

运行以下命令:

php composer.phar require --prefer-dist paolomanca/yii2-fullcalendar "*"

或者将以下内容添加到你的composer.json文件的require部分:

"paolomanca/yii2-fullcalendar": "*"

使用

一旦安装了该扩展,只需在代码中使用它即可:

<?= \talma\widgets\FullCalendar::widget([
    'googleCalendar' => true,  // If the plugin displays a Google Calendar. Default false
    'loading' => 'Carregando...', // Text for loading alert. Default 'Loading...'
    'config' => [
        // put your options and callbacks here
        // see http://arshaw.com/fullcalendar/docs/
        'lang' => 'pt-br', // optional, if empty get app language
        ...
    ],
]); ?>