Componette

Componette

radekdostal

radekdostal / Nette-DateTimePicker v3.2.1

DatePicker and DateTimePicker Input Control

download-cloud-line composer require radekdostal/nette-datetimepicker

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

Form:

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

Learn more in examples.

  • v3.2.1 Released version 3.2.1

    Fixed compatibility with nette/forms 3.2.

  • v3.2.0 Released version 3.2.0

    Requires

    • PHP 8.0 or later,
    • nette/di 3.1 or later,
    • nette/forms 3.1 or later,
    • nette/utils 3.2.1 or later or 4.0 or later.

    Added example of TbDatePicker for Bootstrap 5.

  • v3.1.1 Released version 3.1.1

    Fixed deprecated Nette\PhpGenerator\ClassType::methods.

  • v3.1.0 Released version 3.1.0

    Requires

    • PHP 7.2 or later,
    • nette/di 3.0 or later,
    • nette/forms 3.1 or later,
    • nette/utils 3.2.1 or later.
  • v3.0.0 Released version 3.0.0

    Requires

    • PHP 7.1 or later,
    • nette/di 3.0 or later,
    • nette/forms 3.0 or later,
    • nette/utils 3.0 or later.
  • v2.7.0 Released version 2.7.0

    Added support for NULL return value if setNullable() was used (285c178).

  • v2.6.0 Released version 2.6.0

    Added support for \DateTimeImmutable (7bb3dee).

  • v2.5.1 Released version 2.5.1

    Values of units omitted in format string are resetted to default value instead of current datetime (#10).

  • v2.5.0 Released version 2.5.0

    • Added date/datetime format validation.
    • Added validation rules for optional items (Nette < 2.4) (#9).
  • v2.4.0 Released version 2.4.0

    • Added DI extensions.
    • Fixed Nette 2.2, 2.3 and 2.4 compatibility.
  • v2.3.1 Released version 2.3.1

    DatePicker, TbDatePicker: fixed PHP < 7 compatibility.

  • v2.3.0 Released version 2.3.0

    Added validation rules MIN, MAX, RANGE.

  • v2.2.0 Released version 2.2.0

    • Added DatePicker::register(), DateTimePicker::register(), TbDatePicker::register(), TbDateTimePicker::register() for registering the extension.
    • DatePicker, DateTimePicker: allowed changing the value directly.
    • Removed attribute cols from constructors.
  • v2.1.0 Released version 2.1.0

    Allows set value as native \DateTime object instead of \Nette\Utils\DateTime (e.g. \DibiDateTime).

  • v2.0.0 Released version 2.0.0

    Used Bootstrap datetimepicker 4.0.0 for TbDatePicker and TbDateTimePicker (BC break).

  • v1.6.1 Released version 1.6.1

    Input label is optional.

  • v1.6.0 Released version 1.6.0

    Allowed customizable format for all date/datetime pickers.

  • v1.5.0 Released version 1.5.0

    Added Twitter Bootstrap styled TbDatePicker and TbDateTimePicker input controls.

  • v1.4.0 Released version 1.4.0

    Added DatePicker Input Control to select date without time.

  • v1.3.0 Released version 1.3.0

  • v1.2.1 Released version 1.2.1

  • v1.2.0 Released version 1.2.0

  • v1.1.0 Released version 1.1.0

  • v1.0.0 Released version 1.0.0

  • v1.2.2 Released version 1.2.2

price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1.0)
nette/di (^3.0)
Componette Componette felix@nette.org