fmasa/nette-pagination

There is no license information available for the latest version (1.0) of this package.

Pagination for Nette framework (a.k.a. VisualPaginator)

1.0 2015-04-24 13:58 UTC

This package is auto-updated.

Last update: 2024-12-16 23:46:46 UTC


README

Pagination for Nette framework (a.k.a. VisualPaginator).

Installation

The best way to install Kdyby/Translation is using the Composer:

$ composer require fmasa/nette-pagination

Usage

protected function createComponentPagination()
{
    $pagination = new \fmasa\Controls\Pagination;

    // Set your own template, otherwise default one will be used
    $pagination->template->setFile(__DIR__.'/myAwesomePagination.latte');

    return $pagination;
}

public function renderDefault()
{
    // Obtain Paginator from component
    $paginator = $this['pagination']->paginator; // or $this['pagination']->getPaginator();
}

Default pagination template supports ajaxification (using snippets) – useful for infinite scrolling and other stuff.