radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

3.0.0 2019-04-04 05:35 UTC

README

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

Form:

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

Learn more in examples.