jo / nette-grido
Nette grido extensions
dev-master
2018-07-26 07:43 UTC
Requires
- php: >=5.3
- nette/nette: ~2.0
This package is auto-updated.
Last update: 2024-10-29 05:04:34 UTC
README
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;