udokmeci / yii2-bootstrap-datetime-picker
Yet another bootstrap datetime picker plugin for UNIX Timestamp
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/eonasdan-bootstrap-datetimepicker: 4.17.45
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-11-16 04:42:54 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);}" ] ]) ?>