承接 simialbi/yii2-widget-datetimepicker 相关项目开发

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

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

simialbi/yii2-widget-datetimepicker

最新稳定版本:2.6.1

Composer 安装命令:

composer require simialbi/yii2-widget-datetimepicker

包简介

yii2 widget based on tempus dominus

README 文档

README

This extension provides a date, time or datetime picker widget for yii2 framework in Bootstrap 4 style. It's based on Tempus Dominus.

Resources

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require --prefer-dist simialbi/yii2-widget-datetimepicker

or add

"simialbi/yii2-widget-datetimepicker": "~2.0"

to the require section of your composer.json

Example Usage

To include datepicker instance in one of your pages, call the widget like this:

<?php
/* @var $this yii\web\View */
/* @var $model yii\base\Model */

use yii\widgets\ActiveForm;
use simialbi\yii2\date\Datetimepicker;

$this->title = 'myForm';
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="my-form">
	<?php $form = ActiveForm::begin(['id' => 'my-form']); ?>
		<?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?>
		<?= $form->field($model, 'birthday')->widget(Datetimepicker::class, [
				'format' => 'mm/dd/yyyy',
				'type'   => Datetimepicker::TYPE_COMPONENT_APPEND
			]) ?>
		<?= $form->field($model, 'email') ?>
	<?php ActiveForm::end(); ?>
</div>

License

yii2-widget-datetimepicker is released under MIT license. See bundled LICENSE for details.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-04