kovalenkojuls / yii2-widget-combodate
此软件包的最新版本(v1.0)没有可用的许可证信息。
jQuery 插件 Combodate 的包装器(https://github.com/vitalets/combodate)
v1.0
2016-09-11 14:56 UTC
This package is not auto-updated.
Last update: 2024-09-14 18:58:50 UTC
README
jQuery 插件 Combodate 的包装器(https://github.com/vitalets/combodate)
- 简单输入
- 许多选项
- 许多模板
安装
安装此扩展的首选方式是通过 composer。请检查 composer.json 以获取此扩展的要求和依赖项。阅读此 web 提示 /wiki 了解如何在您的 application's composer.json 中设置 minimum-stability
设置。
要安装,请运行
$ php composer.phar require kovalenkojuls/yii2-widget-combodate "*"
或添加
"kovalenkojuls/yii2-widget-combodate": "*"
到您的 composer.json
文件的 require
部分。
演示
您可以参考详细的 演示
使用方法
use kovalenkojuls\date\CombodateWidget; // usage without model echo '<label>Check Date</label>'; echo CombodateWidget::widget([ 'name' => 'check_date', 'options' => [ 'language' => 'ru', 'data-format' => 'DD.MM.YYYY', 'data-template' => 'D MMMM YYYY', 'customClass' => 'form-control' ] ]); //....................................................................... // usage model $form = ActiveForm::begin(); echo $form->field($model, 'birthday')->widget(CombodateWidget::className(), [ 'value' => $model->birthday ? $model->birthday : '', 'options' => [ 'language' => 'ru', 'data-format' => 'DD.MM.YYYY', 'data-template' => 'D MMMM YYYY', 'customClass' => 'form-control' ] ])
必需参数
可选参数
##许可证