承接 moonlandsoft/bootui-datetimepicker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moonlandsoft/bootui-datetimepicker

Composer 安装命令:

composer require moonlandsoft/bootui-datetimepicker

包简介

Bootstrap Datepicker and Timepicker in one extentions

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Bootstrap Datepicker and Timepicker in one extentions

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist moonlandsoft/bootui-datetimepicker "*"

or add

"moonlandsoft/bootui-datetimepicker": "*"

to the require section of your composer.json file.

Properties

addon

Addon is a bootstrap input group addon, you can see bootstrap input group to details of documentation. Extend form controls by adding text or buttons before, after, or on both sides of any text-based input.

format

You can change format of date or time using this property but this format only use momentjs date time format and not use php date time format. Click here to see all of datetime format.

others properties

For others properties you can see in bootstrap-datetimepicker. You can directly add the property from bootstrap-datetimepicker and my widget will instantly recognize the property.

Usage

Once the extension is installed, simply use it in your code by :

<?= \bootui\datetimepicker\Datepicker::widget([
 	'name' => 'date',
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Birth Date'],
 	'format' => 'YYYY-MM-DD',
]); ?>

<?= \bootui\datetimepicker\Timepicker::widget([ 
	'name' => 'time',
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Time'],
 	'format' => 'HH:mm',
]); ?>

<?= \bootui\datetimepicker\DateTimepicker::widget([
 	'name' => 'datetime',
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Date and Time'],
 	'format' => 'YYYY-MM-DD HH:mm',
]); ?>

or

<?= $form->field($model, 'attribute')->widget(Datepicker::className(),[
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Birth Date'],
 	'format' => 'YYYY-MM-DD',
]); ?>

<?= $form->field($model, 'attribute')->widget(Timepicker::className(),[ 
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Time'],
 	'format' => 'HH:mm',
]); ?>

<?= $form->field($model, 'attribute')->widget(DateTimepicker::className(),[
 	'options' => ['class' => 'form-control'],
 	'addon' => ['prepend' => 'Date and Time'],
 	'format' => 'YYYY-MM-DD HH:mm',
]); ?>

统计信息

  • 总下载量: 38.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固