nvlad/yii2-bootstrap-datetimepicker

Datetimepicker widget for Yii2 framework

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

Language:JavaScript

Type:yii2-extension

1.0 2014-12-05 12:49 UTC

This package is not auto-updated.

Last update: 2024-05-01 06:56:37 UTC


README

Datetimepicker widget for Yii2 framework Based on https://github.com/Eonasdan/bootstrap-datetimepicker

NOTE Here might be some bugs or follies. Contribute to remove them ;)

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist trntv/yii2-bootstrap-datetimepicker "*"

or add

"trntv/yii2-bootstrap-datetimepicker": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= $form->field($model, 'attribute')->widget('trntv\yii\datetimepicker\DatetimepickerWidget'); ?>

Options

phpDatetimeFormat - PHP ICU datetime format

momentDatetimeFormat - Moment JS datetime format

clientOptions - http://eonasdan.github.io/bootstrap-datetimepicker/#options