Yii2 Bootstrap 3
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.
 
 
Antonio Ramirez 0efe892f15 fix merging issues 11 years ago
..
assets moved extensions under yii. 11 years ago
Accordion.php moved extensions under yii. 11 years ago
AccordionAsset.php moved extensions under yii. 11 years ago
AutoComplete.php moved extensions under yii. 11 years ago
AutoCompleteAsset.php moved extensions under yii. 11 years ago
ButtonAsset.php moved extensions under yii. 11 years ago
CHANGELOG.md Fixes #1550: fixed the issue that JUI input widgets did not property input IDs. 11 years ago
CoreAsset.php moved extensions under yii. 11 years ago
DatePicker.php Fixes #1550: fixed the issue that JUI input widgets did not property input IDs. 11 years ago
DatePickerAsset.php moved extensions under yii. 11 years ago
DatePickerRegionalAsset.php moved extensions under yii. 11 years ago
Dialog.php moved extensions under yii. 11 years ago
DialogAsset.php moved extensions under yii. 11 years ago
Draggable.php moved extensions under yii. 11 years ago
DraggableAsset.php moved extensions under yii. 11 years ago
Droppable.php moved extensions under yii. 11 years ago
DroppableAsset.php moved extensions under yii. 11 years ago
EffectAsset.php moved extensions under yii. 11 years ago
InputWidget.php fix merging issues 11 years ago
LICENSE.md moved extensions under yii. 11 years ago
Menu.php moved extensions under yii. 11 years ago
MenuAsset.php moved extensions under yii. 11 years ago
ProgressBar.php moved extensions under yii. 11 years ago
ProgressBarAsset.php moved extensions under yii. 11 years ago
README.md moved extensions under yii. 11 years ago
Resizable.php moved extensions under yii. 11 years ago
ResizableAsset.php moved extensions under yii. 11 years ago
Selectable.php moved extensions under yii. 11 years ago
SelectableAsset.php moved extensions under yii. 11 years ago
Slider.php Renamed yii\jui\Widget::clientEventsMap to clientEventMap 11 years ago
SliderAsset.php moved extensions under yii. 11 years ago
SliderInput.php Fixes #1550: fixed the issue that JUI input widgets did not property input IDs. 11 years ago
Sortable.php moved extensions under yii. 11 years ago
SortableAsset.php moved extensions under yii. 11 years ago
Spinner.php Renamed yii\jui\Widget::clientEventsMap to clientEventMap 11 years ago
SpinnerAsset.php moved extensions under yii. 11 years ago
Tabs.php moved extensions under yii. 11 years ago
TabsAsset.php moved extensions under yii. 11 years ago
ThemeAsset.php moved extensions under yii. 11 years ago
TooltipAsset.php moved extensions under yii. 11 years ago
Widget.php Fixes #1550: fixed the issue that JUI input widgets did not property input IDs. 11 years ago
composer.json moved extensions under yii. 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.