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.
 
 
Qiang Xue 978597919d Merge pull request #1715 from WouterSlob/1632 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 Remove not used uses 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 Make sure DatePicker is shown when inline and using a language. Remove not used use 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 Remove not used uses 11 years ago
LICENSE.md moved extensions under yii. 11 years ago
Menu.php Remove not used uses 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 #1636: `yii\jui\SliderInput` wasn't properly initialized 11 years ago
Sortable.php moved extensions under yii. 11 years ago
SortableAsset.php moved extensions under yii. 11 years ago
Spinner.php Remove not used uses 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 Remove not used uses 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.