Registry / web-framework / kartik-v-yii2-widget-datetimepicker

kartik-v-yii2-widget-datetimepicker

JSON →
library1.5.1phppackagistunverified

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin, providing a feature-rich date and time picker widget.

composer require kartik-v/yii2-widget-datetimepicker
INSTALL
IMPORT
SIG · KARTIK-V-YII2-WIDG
K
kartik-v-yii2-widget-datetimepicker
web-frameworkphpv1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DateTimePicker
use kartik\datetime\DateTimePicker;

Render a DateTimePicker widget in a Yii2 view.

use kartik\datetime\DateTimePicker; echo DateTimePicker::widget([ 'name' => 'datetime', 'options' => ['placeholder' => 'Select date and time'], 'convertFormat' => true, 'pluginOptions' => [ 'format' => 'yyyy-mm-dd hh:ii', 'autoclose' => true, ] ]);
Debug
Known issues
gotchaRequires Bootstrap 3.x or 4.x CSS/JS to be loaded.
fix
Ensure Bootstrap assets are registered in your Yii2 application.
affects: >=1.0.0
Upgrade
Version history
1.5.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
kartik-v-yii2-widget-datetimepicker — pip install kartik-v-yii2-widget-datetimepicker · libregistry