You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Carsten Brandt e837e44ac1 updated ext composer.json for issue labels 11 years ago
..
assets Adjusted jui directories. 11 years ago
Accordion.php Adjusted jui directories. 11 years ago
AccordionAsset.php Adjusted jui directories. 11 years ago
AutoComplete.php Adjusted jui directories. 11 years ago
AutoCompleteAsset.php Adjusted jui directories. 11 years ago
ButtonAsset.php Adjusted jui directories. 11 years ago
CoreAsset.php Adjusted jui directories. 11 years ago
DatePicker.php Adjusted jui directories. 11 years ago
DatePickerAsset.php Adjusted jui directories. 11 years ago
DatePickerRegionalAsset.php Adjusted jui directories. 11 years ago
Dialog.php Adjusted jui directories. 11 years ago
DialogAsset.php Adjusted jui directories. 11 years ago
Draggable.php Adjusted jui directories. 11 years ago
DraggableAsset.php Adjusted jui directories. 11 years ago
Droppable.php Adjusted jui directories. 11 years ago
DroppableAsset.php Adjusted jui directories. 11 years ago
EffectAsset.php Adjusted jui directories. 11 years ago
InputWidget.php Adjusted jui directories. 11 years ago
LICENSE.md updated license information. 11 years ago
Menu.php Adjusted jui directories. 11 years ago
MenuAsset.php Adjusted jui directories. 11 years ago
ProgressBar.php Adjusted jui directories. 11 years ago
ProgressBarAsset.php Adjusted jui directories. 11 years ago
README.md Clarification about clientOptions and using JUI in AR form 11 years ago
Resizable.php Adjusted jui directories. 11 years ago
ResizableAsset.php Adjusted jui directories. 11 years ago
Selectable.php Adjusted jui directories. 11 years ago
SelectableAsset.php Adjusted jui directories. 11 years ago
Slider.php Fixes #1222: refactored jui/Widget, intorduced jui/Slider and jui/SliderInput 11 years ago
SliderAsset.php Adjusted jui directories. 11 years ago
SliderInput.php fixed typo 11 years ago
Sortable.php Adjusted jui directories. 11 years ago
SortableAsset.php Adjusted jui directories. 11 years ago
Spinner.php Adjusted jui directories. 11 years ago
SpinnerAsset.php Adjusted jui directories. 11 years ago
Tabs.php Adjusted jui directories. 11 years ago
TabsAsset.php Adjusted jui directories. 11 years ago
ThemeAsset.php Adjusted jui directories. 11 years ago
TooltipAsset.php Adjusted jui directories. 11 years ago
Widget.php Fixes #1222: refactored jui/Widget, intorduced jui/Slider and jui/SliderInput 11 years ago
composer.json updated ext composer.json for issue labels 11 years ago

README.md

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.