radekdostal / nette-datetimepicker
DatePicker and DateTimePicker input controls for Nette Framework
Installs: 213 228
Dependents: 4
Suggesters: 0
Security: 0
Stars: 13
Watchers: 3
Forks: 10
Open Issues: 1
Requires
- php: >=8.0.0
- nette/di: ^3.1
- nette/forms: ^3.1
- nette/utils: ^3.2.1 || ^4.0
Requires (Dev)
- tracy/tracy: ^2.9
README
DatePicker and DateTimePicker input controls for Nette Framework
- Author: Radek Dostál <radek.dostal@gmail.com>
- Copyright: Copyright (c) 2010 - 2024 Radek Dostál
- Licence: GNU Lesser General Public License
- Github: radekdostal/Nette-DateTimePicker
This add-on creates input box to select date or date and time.
Requirements
- PHP 8.0 or later
- Nette Dependency Injection Container 3.1 or later
- Nette Forms 3.1 or later
- Nette Utilities 3.2.1 or later or 4.0 or later
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.