Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 539 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 539 Bytes

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;