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 d64fa3e88a using jquery-ui dependency to have prebuilt files. [skip ci] 10 years ago
..
assets Removed executable flag from asset files 11 years ago
Accordion.php property code style extensions 10 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 property code style extensions 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 property code style extensions 10 years ago
LICENSE.md psr-4 change. 11 years ago
Menu.php property code style extensions 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 property code style extensions 10 years ago
SelectableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Slider.php property code style extensions 10 years ago
SliderAsset.php Reformat code te be PSR-2 compatible 11 years ago
SliderInput.php property code style extensions 10 years ago
Sortable.php property code style extensions 10 years ago
SortableAsset.php Reformat code te be PSR-2 compatible 11 years ago
Spinner.php property code style extensions 10 years ago
SpinnerAsset.php Reformat code te be PSR-2 compatible 11 years ago
Tabs.php property code style extensions 10 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 property code style extensions 10 years ago
bower.json using jquery-ui dependency to have prebuilt files. [skip ci] 10 years ago
composer.json Added bower.json to bootstrap and jui extensions. 10 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.