yii2-jui

Yii 2 JQuery UI extension.

  • 所有者: yiisoft/yii2-jui
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

This is the JQuery UI extension for Yii framework 2.0. It encapsulates JQuery UI widgets as Yii widgets,
and makes using JQuery UI widgets in Yii applications extremely easy.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version
Total Downloads
Build Status

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"yiisoft/yii2-jui": "~2.0.0"

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:

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

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

<?= yii\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']]) ?>

主要指标

概览
名称与所有者yiisoft/yii2-jui
主编程语言PHP
编程语言PHP (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2013-10-02 03:22:31
推送于2025-05-29 21:15:55
最后一次提交2025-05-29 17:15:55
发布数11
最新版本名称2.0.7 (发布于 2017-11-25 18:32:30)
第一版名称2.0.0-alpha (发布于 )
用户参与
星数129
关注者数28
派生数112
提交数4.7k
已启用问题?
问题数62
打开的问题数11
拉请求数34
打开的拉请求数3
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?