Yii2 framework backup
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 756308d2d9 Finished widget tutorial [skip ci] 10 years ago
..
assets Removed executable flag from asset files 11 years ago
Accordion.php fixed all the PHPdoc in extensions 11 years ago
AccordionAsset.php Reformat code te be PSR-2 compatible 11 years ago
AutoComplete.php fixed all the PHPdoc in extensions 11 years ago
AutoCompleteAsset.php Reformat code te be PSR-2 compatible 11 years ago
ButtonAsset.php Reformat code te be PSR-2 compatible 11 years ago
CHANGELOG.md prepare for next release. 11 years ago
CoreAsset.php Reformat code te be PSR-2 compatible 11 years ago
DatePicker.php Finished widget tutorial [skip ci] 10 years ago
DatePickerAsset.php Reformat code te be PSR-2 compatible 11 years ago
DatePickerRegionalAsset.php Reformat code te be PSR-2 compatible 11 years ago
Dialog.php Reformat code te be PSR-2 compatible 11 years ago
DialogAsset.php Reformat code te be PSR-2 compatible 11 years ago
Draggable.php Reformat code te be PSR-2 compatible 11 years ago
DraggableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Droppable.php Reformat code te be PSR-2 compatible 11 years ago
DroppableAsset.php Reformat code te be PSR-2 compatible 11 years ago
EffectAsset.php Reformat code te be PSR-2 compatible 11 years ago
InputWidget.php Reformat code te be PSR-2 compatible 11 years ago
LICENSE.md psr-4 change. 11 years ago
Menu.php Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 10 years ago
MenuAsset.php Reformat code te be PSR-2 compatible 11 years ago
ProgressBar.php fixed all the PHPdoc in extensions 11 years ago
ProgressBarAsset.php Reformat code te be PSR-2 compatible 11 years ago
README.md psr-4 change. 11 years ago
Resizable.php Reformat code te be PSR-2 compatible 11 years ago
ResizableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Selectable.php fixed all the PHPdoc in extensions 11 years ago
SelectableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Slider.php Reformat code te be PSR-2 compatible 11 years ago
SliderAsset.php Reformat code te be PSR-2 compatible 11 years ago
SliderInput.php Reformat code te be PSR-2 compatible 11 years ago
Sortable.php fixed all the PHPdoc in extensions 11 years ago
SortableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Spinner.php fixed all the PHPdoc in extensions 11 years ago
SpinnerAsset.php Reformat code te be PSR-2 compatible 11 years ago
Tabs.php Fixes example code symbol errors 11 years ago
TabsAsset.php Reformat code te be PSR-2 compatible 11 years ago
ThemeAsset.php Reformat code te be PSR-2 compatible 11 years ago
TooltipAsset.php Reformat code te be PSR-2 compatible 11 years ago
Widget.php Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 10 years ago
composer.json replaced keyword "yii" with "yii2" in composer.json files (fixes #2557) 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 --prefer-dist yiisoft/yii2-jui "*"

or add

"yiisoft/yii2-jui": "*"

to the require section of your composer.json file.