konecnyjakub/event-calendar

此包已被 废弃 且不再维护。作者建议使用 nexendrie/event-calendar 包。

Nette 基于的 Web 应用插件,用于创建带有自定义事件的日历

0.7.0 2021-05-08 15:15 UTC

This package is auto-updated.

Last update: 2024-08-31 12:51:49 UTC


README

Total Downloads Latest Stable Version Build Status Code Coverage

这是一个 Nette 框架的附加组件,允许在日历中显示各种事件。它提供本地化和自定义的方法。您还可以在事件文本中使用 html 和 Texy!。

安装

最佳安装方式是通过 Composer。只需将 nexendrie/event-calendar 添加到依赖项中。

快速开始

将以下代码添加到您的代码中(在 presenter/control 中)

<?php

declare(strict_types=1);

use Nexendrie\EventCalendar\Simple\SimpleCalendar;

class MyPresenter extends \Nette\Application\UI\Presenter
{
    protected function createComponentCalendar(): SimpleCalendar {
        $cal = new SimpleCalendar();
        return $cal;
    }
} 

并在模板中

    {control calendar}