udokmeci / yii2-bootstrap-datetime-picker
Yet another bootstrap datetime picker plugin for UNIX Timestamp
Package info
github.com/udokmeci/yii2-bootstrap-datetime-picker
Type:yii2-extension
pkg:composer/udokmeci/yii2-bootstrap-datetime-picker
dev-master
2019-09-10 13:58 UTC
Requires
- bower-asset/eonasdan-bootstrap-datetimepicker: 4.17.45
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-02-16 07:24:04 UTC
README
Yet another bootstrap datetime picker plugin for UNIX Timestamp (Only for UNIX Timestamp fields!)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist udokmeci/yii2-bootstrap-datetime-picker "*"
or add
"udokmeci/yii2-bootstrap-datetime-picker": "*"
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, 'date')->widget(\udokmeci\bdtp\DateTimePicker::className(), [ 'pluginOptions'=>[ 'inline'=>true, ], 'events'=>[ 'dp.show'=>"function(e){console.log(e);}" ] ]) ?>