DatePicker and DateTimePicker Input Control
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Released version 2.6.0. May 23, 2018
src Added support for NULL return value if setNullable() was used. Dec 12, 2018
.gitignore Refactoring. Aug 27, 2014
composer.json Released version 2.7.0. Dec 12, 2018
readme.md Released version 2.6.0. May 23, 2018

readme.md

DateTimePicker for Nette Framework

DatePicker and DateTimePicker input controls for Nette Framework

This add-on creates input box to select date or date and time.

Requirements

GNU Lesser General Public License

LGPL licenses are very very long, so instead of including them here we offer you URLs with full text:

Example of using DI extension

config.neon:

extensions:
  tbDatePicker: RadekDostal\NetteComponents\DateTimePicker\TbDatePicker\DI\TbDatePickerExtension
 
tbDatePicker:
  format: j. n. Y

Part of form definition where date is optional (Nette 2.4):

$this->addTbDatePicker('date', 'Date')
  ->setRequired(FALSE)
  ->addRule(self::RANGE, NULL, array(new \DateTime('2016-09-01'), new \DateTime('2016-09-15')));

Part of form definition where date is optional (Nette < 2.4):

$this->addTbDatePicker('date', 'Date')
  ->addConditionalRule(self::RANGE, NULL, array(new \DateTime('2016-09-01'), new \DateTime('2016-09-15')));

Learn more in examples.