nexendrie / EventCalendar

A component for Nette - calendar with events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EventCalendar

Total Downloads Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality 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}

About

A component for Nette - calendar with events


Languages

Language:PHP 86.0%Language:Latte 14.0%