Name Last update
..
assets Loading commit data...
Accordion.php Loading commit data...
AccordionAsset.php Loading commit data...
AutoComplete.php Loading commit data...
AutoCompleteAsset.php Loading commit data...
ButtonAsset.php Loading commit data...
CHANGELOG.md Loading commit data...
CoreAsset.php Loading commit data...
DatePicker.php Loading commit data...
DatePickerAsset.php Loading commit data...
DatePickerRegionalAsset.php Loading commit data...
Dialog.php Loading commit data...
DialogAsset.php Loading commit data...
Draggable.php Loading commit data...
DraggableAsset.php Loading commit data...
Droppable.php Loading commit data...
DroppableAsset.php Loading commit data...
EffectAsset.php Loading commit data...
InputWidget.php Loading commit data...
LICENSE.md Loading commit data...
Menu.php Loading commit data...
MenuAsset.php Loading commit data...
ProgressBar.php Loading commit data...
ProgressBarAsset.php Loading commit data...
README.md Loading commit data...
Resizable.php Loading commit data...
ResizableAsset.php Loading commit data...
Selectable.php Loading commit data...
SelectableAsset.php Loading commit data...
Slider.php Loading commit data...
SliderAsset.php Loading commit data...
SliderInput.php Loading commit data...
Sortable.php Loading commit data...
SortableAsset.php Loading commit data...
Spinner.php Loading commit data...
SpinnerAsset.php Loading commit data...
Tabs.php Loading commit data...
TabsAsset.php Loading commit data...
ThemeAsset.php Loading commit data...
TooltipAsset.php Loading commit data...
Widget.php Loading commit data...
composer.json Loading commit data...

JUI Extension for Yii 2

This is the JQuery UI extension for Yii 2. It encapsulates JQuery UI widgets as Yii widgets, and makes using JQuery UI widgets in Yii applications extremely easy. For example, 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' => ['dateFormat' => 'yy-mm-dd']]) ?>

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

<?= $form->field($model,'attributeName')->widget(DatePicker::className(),['clientOptions' => ['dateFormat' => 'yy-mm-dd']]) ?>

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yiisoft/yii2-jui "*"

or add

"yiisoft/yii2-jui": "*"

to the require section of your composer.json file.