andrew72ru/yii2-bootstrap-datepicker-mobile
Composer 安装命令:
composer require andrew72ru/yii2-bootstrap-datepicker-mobile
包简介
Mobile-first datepicker for Yii2 based on https://github.com/niftylettuce/bootstrap-datepicker-mobile
README 文档
README
Mobile-first datepicker for Yii2 based on https://github.com/niftylettuce/bootstrap-datepicker-mobile
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist andrew72ru/yii2-bootstrap-datepicker-mobile "*"
or add
"andrew72ru/yii2-bootstrap-datepicker-mobile": "*"
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(\andrew72ru\datepicker\DatePicker::className(), [ 'options' => [], // Html tag options 'pluginOptions' => [ 'date-start-view' => 'day', 'date-format' => 'dd.mm.yy', 'date' => \Yii::$app->formatter->asDate(time(), 'MM/dd/yy'), ], ]); ?>
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-11