skker/yii2-jui 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

skker/yii2-jui

Composer 安装命令:

composer require skker/yii2-jui

包简介

The Jquery UI extension for the Yii framework

README 文档

README

This JQuery UI extension is forked from [yiisoft/yii2-jui] (https://github.com/yiisoft/yii2-jui). It uses JQuery UI 1.14.1

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skker/yii2-jui

or add

"skker/yii2-jui": "dev-master"

to the require section of your composer.json file.

Usage

The following single line of code in a view file would render a JQuery UI DatePicker widget:

<?= skker\jui\DatePicker::widget(['name' => 'attributeName']) ?>

Configuring the Jquery UI options should be done using the clientOptions attribute:

<?= skker\jui\DatePicker::widget(['name' => 'attributeName', 'clientOptions' => ['defaultDate' => '2014-01-01']]) ?>

If you want to use the JUI widget in an ActiveForm, it can be done like this:

<?= $form->field($model,'attributeName')->widget(DatePicker::className(),['clientOptions' => ['defaultDate' => '2014-01-01']]) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-07-28