extensions for grido grid
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
JO/Nette/Grido/Components/Filters
nbproject
README.md
composer.json

README.md

DateRange extension for Grido Grid

see https://packagist.org/packages/o5/grido

usage

boostrap.php

JO\Nette\Grido\Components\Filters\DateRangeExt::register();

create data grid

$this->dg  - instance of Grido grid
$dtExample = '1.1.2014-31.5.2014';
$this->dg
	->addFilterDateRangeExt('orderDate', $this->getColumnLabel('orderDate'))
    ->getControl()->getControlPrototype()->attrs['placeholder'] = $dtExample;

$this->dg->getFilter('orderDate')->getControl()->getControlPrototype()->attrs['title'] = $dtExample;