Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: monthpicker filter #264

Open
djdaca opened this issue Feb 26, 2016 · 0 comments
Open

Idea: monthpicker filter #264

djdaca opened this issue Feb 26, 2016 · 0 comments

Comments

@djdaca
Copy link
Contributor

djdaca commented Feb 26, 2016

Napado mě přidat filter na měsíc/rok - jedná se o předběžnou verzi, ale kdyby chtěl někdo využít nebo vylepšit určitě může :)

Použít v gridu je možno následujícím způsobem:
$Grid->addColumnDate('date', 'Vytvořeno', 'd.m.Y H:i')
->setSortable()
->setFilterText('date')
->setWhere(function($value, Dibi\Fluent $conn){
$conn->where('DATE([pr].%n) LIKE %like~', 'date', $value);
})
->getControl()
->controlPrototype
->class[] = 'month';

grido.monthpicker.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant