Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.35 KB

readme.md

File metadata and controls

38 lines (26 loc) · 1.35 KB

EventCalendar

Total Downloads Latest Stable Version Build Status Code Coverage

This is an add-on component for Nette framework which enables displaying various events in calendar. It provides methods for localisation & customization. You can also use html and Texy! in your event texts.

Installation

The best way to install it is via Composer. Just add nexendrie/event-calendar to your dependencies.

Quick start

Add to your code (in 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;
    }
} 

and in template:

    {control calendar}