radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

3.2.1 2024-02-12 07:28 UTC

This package is auto-updated.

Last update: 2024-11-12 09:24:23 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()
  ->addRule(self::Range, NULL, [new \DateTime('2016-09-01'), new \DateTime('2016-09-15')]);

Learn more in examples.