modernkernel/yii2-datetimepicker Bootstrap Datepicker extension for Yii2

extensiondatetimepicker

Yii2 Datetime Picker

Bootstrap Datepicker extension for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"modernkernel/yii2-datetimepicker": "*"

to the require section of your composer.json file.

Usage

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

Using a model with a basic preset:

<?= 
$form->field($model, 'subject')->widget(\modernkernel\datetimepicker\DateTimePicker::className(), [
    'options'=>['class'=>'form-control'],
    'clientOptions'=>[
        //'format'=>'MM/DD/YYYY H:mm',
        //'stepping'=>15,
        //'minDate'=>new \yii\web\JsExpression('new Date()')
    ]
]) 
?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.1 is the latest of 2 releases



BSD-3-Clause license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
5 total downloads