Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmasa/nette-pagination
Pagination for Nette framework (a.k.a. VisualPaginator)
https://github.com/fmasa/nette-pagination
Last synced: 26 days ago
JSON representation
Pagination for Nette framework (a.k.a. VisualPaginator)
- Host: GitHub
- URL: https://github.com/fmasa/nette-pagination
- Owner: fmasa
- License: mit
- Created: 2015-04-24T13:43:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T21:57:04.000Z (almost 9 years ago)
- Last Synced: 2024-04-19T08:45:14.980Z (7 months ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nette pagination
*Pagination for Nette framework (a.k.a. VisualPaginator).*## Installation
The best way to install Kdyby/Translation is using the [Composer](http://getcomposer.org/):
```sh
$ composer require fmasa/nette-pagination
```## Usage
```php
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.