定制 3ch3r46/bootui-datepicker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

3ch3r46/bootui-datepicker

最新稳定版本:1.0.0

Composer 安装命令:

composer require 3ch3r46/bootui-datepicker

包简介

The Bootstrap Datepicker extension for yii framework

README 文档

README

The Bootstrap Datepicker extension for yii framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist 3ch3r46/bootui-datepicker "*"

or add

"3ch3r46/bootui-datepicker": "*"

to the require section of your composer.json file.

Usage

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

<?php
use bootui\datepicker\Datepicker;

echo $form->field($model, 'attribute')->widget(Datepicker::className(), [
	'format' => 'yyyy-mm-dd',
	'addon' => [
		'prepend' => [Html::a('btn1', '#', ['class' => 'btn btn-default']), true], // prepend in single button, format [String $content, Boolean $asButton]
		'append' => [ // append in multiple button.
			[bootui\Button::widget(['label' => 'btn 2']), true],
			[bootui\Button::className(), ['label' => 'btn 3'], true], // format [$className, Array $config, Boolean $asButton]
		],
	],
]);

echo Datepicker::widget([
	'model' => $model,
	'attribute' => 'date',
	'format' => 'yyyy-mm-dd',
]);

echo Datepicker::widget([
	'name' => 'date-create',
	'value' => '2014-05-26',
	'format' => 'yyyy-mm-dd',
]);

?>


Property Datepicker

  • boolean $autoclose default value true
  • boolean $todayHighlight default value true
  • string $format default value yyyy-mm-dd
  • boolean $multidate default value false
  • string $multidateSeparator default value ,
  • string $daysOfWeekDisabled example value 0,1 disable the first and second day in week.
  • boolean $calendarWeeks default value false
  • boolean $forceParse default value true
  • boolean|string $todayBtn example value false, true, or string linked.
  • string $language example value en
  • integer $weekStart example value 3 start week from wednesday

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-26