skker/yii2-jui

The Jquery UI extension for the Yii framework

Fund package maintenance!
Open Collective
yiisoft
Tidelift

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 114

Type:yii2-extension

dev-master / 2.0.x-dev 2025-07-29 10:12 UTC

This package is auto-updated.

Last update: 2025-07-29 10:13:23 UTC


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