sunnnnn / yii2-widgets-datetimepicker
datetimepicker widget for yii2-admin or Yii2 frame
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-widgets
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-03-26 18:46:38 UTC
README
//引用文件
use sunnnnn\datetimepicker\Datetimepicker;
//在ActiveForm中
<?= $form->field($model, 'datetime')->widget(Datetimepicker::classname()); ?>
//不使用ActiveForm
<?= Datetimepicker::widget(['name' => 'datetime']); ?>
//参数
<?= $form->field($model, 'datetime')->widget(Datetimepicker::classname(),[
'_format' => 'YYYY-MM-DD hh:mm:ss',
'_language' => 'zh-cn',
...
]); ?