定制 marcinmisiak/yii2-fullcalendar6 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marcinmisiak/yii2-fullcalendar6

Composer 安装命令:

composer require marcinmisiak/yii2-fullcalendar6

包简介

Yii2 widget & asset bundle for FullCalendar v6, vendored locally (no npm-asset/composer version conflicts with other FullCalendar packages)

README 文档

README

Yii2 widget & asset bundle for FullCalendar v6, vendored locally as static files (no npm-asset/fullcalendar composer dependency), so it can be installed alongside older FullCalendar-based packages (e.g. edofre/yii2-fullcalendar, philippfrenzel/yii2fullcalendar) without any version conflict.

Installation

Via a VCS repository (until/unless this package is published on Packagist):

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/marcinmisiak/yii2-fullcalendar6"
    }
],
"require": {
    "marcinmisiak/yii2-fullcalendar6": "dev-master"
}

Usage

<div id="grafik"></div>

<?php
echo \marcinmisiak\yii2fullcalendar6\Fullcalendar::widget([
    'options'  => ['id' => 'grafik'],
    'jsVar'    => 'grafikCalendar', // window.grafikCalendar
    'events'   => $urlEvents,       // JSON feed URL or array of events
    'clientOptions' => [
        'allDaySlot'  => false,
        'selectable'  => true,
        'editable'    => true,
    ],
    'select'      => "function(info) { /* ... */ }",
    'eventClick'  => "function(info) { /* ... */ }",
    'eventDrop'   => "function(info) { /* ... */ }",
    'eventResize' => "function(info) { /* ... */ }",
]);
?>

The widget renders the <div> container itself — remove the standalone one above if you pass 'options' => ['id' => '...'].

Afterwards, from any other script on the page, call instance methods via the configured jsVar:

window.grafikCalendar.refetchEvents();
window.grafikCalendar.unselect();

Callbacks

select, eventClick, eventDrop, eventResize, eventDidMount accept a raw JS function body string (function(info) { ... }), following FullCalendar v6's single-info-object callback API — see https://fullcalendar.io/docs/v6 for the shape of info per callback.

License

MIT. Bundles FullCalendar's own MIT-licensed Standard distribution unmodified — see LICENSE.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固