Datepicker用法
来源:互联网 发布:c语言volatile的用法 编辑:程序博客网 时间:2024/06/08 08:40
安装yii2-date-picker-widget插件
链接地址 https://github.com/2amigos/yii2-date-picker-widget
修改index.php文件
#code ...
use dosamigos \datepicker\ DatePicker;
#code ...
<?= $form ->field( $model, 'company_address' )->textInput (['maxlength' => true]) ?>
<?= $form ->field( $model, 'company_start_date' )->widget (
DatePicker ::className(), [
// inline too, not bad
'inline' => false,
// modify template for custom rendering
//'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>',
'clientOptions' => [
'autoclose' => true,
'format' => 'yyyy-m-d'
]
]);?>
<?= $form ->field( $model, 'company_created_date' )->textInput () ?>
<?= $form ->field( $model, 'company_start_date' )->widget (
DatePicker ::className(), [
// inline too, not bad
'inline' => false,
// modify template for custom rendering
//'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>',
'clientOptions' => [
'autoclose' => true,
'format' => 'yyyy-m-d'
]
]);?>
<?= $form ->field( $model, 'company_created_date' )->textInput () ?>
#code ...
0 0
- Datepicker用法
- jquery datepicker 日期用法
- JQuery datepicker 用法
- JQuery datepicker 用法
- JQuery datepicker 用法
- JQuery datepicker 用法 1
- JQuery datepicker 用法
- JQuery datepicker 用法
- DatePicker、TimePicker基本用法
- JQuery datepicker 用法
- JQuery datepicker 用法详解
- datepicker的具体用法
- android DatePicker和TimePicke用法
- android DatePicker和TimePicke用法
- jQuery Datepicker 日期控件 用法
- jQuery 中datepicker的用法
- spinner,timepicker,datePicker的用法
- DatePicker
- 九度OJ-题目1371:最小的K个数
- HDU3117 Fibonacci Numbers 求斐波那契的前后4位
- iOS数据持久化技术
- 修改列表的行样式
- NSURL详解
- Datepicker用法
- Ubuntu 14.04一步一步安装Openstack Kilo版本-9(nova)
- iOS网络
- Calendar的基本使用
- java集合框架详解(二)、set接口
- 源码阅读 5 微信6.0底部效果
- iOS音频技术
- yii2文件上传
- android数据存储读取1:SharedPreferences(对比IOS)