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.
 
 
 
 
 
Alexander Makarov 3400eb5215 #2630: `yii\heplers\Html::url` moved to new `yii\helpers\Url::create` 11 years ago
..
assets Removed executable flag from asset files 11 years ago
Accordion.php psr-4 change. 11 years ago
AccordionAsset.php psr-4 change. 11 years ago
AutoComplete.php psr-4 change. 11 years ago
AutoCompleteAsset.php many phpcs fixes 11 years ago
ButtonAsset.php many phpcs fixes 11 years ago
CHANGELOG.md Update CHANGELOG.md 11 years ago
CoreAsset.php many phpcs fixes 11 years ago
DatePicker.php Remove language check from DatePicker 11 years ago
DatePickerAsset.php many phpcs fixes 11 years ago
DatePickerRegionalAsset.php many phpcs fixes 11 years ago
Dialog.php psr-4 change. 11 years ago
DialogAsset.php many phpcs fixes 11 years ago
Draggable.php psr-4 change. 11 years ago
DraggableAsset.php many phpcs fixes 11 years ago
Droppable.php psr-4 change. 11 years ago
DroppableAsset.php many phpcs fixes 11 years ago
EffectAsset.php many phpcs fixes 11 years ago
InputWidget.php psr-4 change. 11 years ago
LICENSE.md psr-4 change. 11 years ago
Menu.php psr-4 change. 11 years ago
MenuAsset.php many phpcs fixes 11 years ago
ProgressBar.php psr-4 change. 11 years ago
ProgressBarAsset.php many phpcs fixes 11 years ago
README.md psr-4 change. 11 years ago
Resizable.php psr-4 change. 11 years ago
ResizableAsset.php many phpcs fixes 11 years ago
Selectable.php psr-4 change. 11 years ago
SelectableAsset.php many phpcs fixes 11 years ago
Slider.php allow referencing the guide from API docs 11 years ago
SliderAsset.php many phpcs fixes 11 years ago
SliderInput.php allow referencing the guide from API docs 11 years ago
Sortable.php fixed Jui sortable clientEvents naming 11 years ago
SortableAsset.php many phpcs fixes 11 years ago
Spinner.php allow referencing the guide from API docs 11 years ago
SpinnerAsset.php many phpcs fixes 11 years ago
Tabs.php #2630: `yii\heplers\Html::url` moved to new `yii\helpers\Url::create` 11 years ago
TabsAsset.php many phpcs fixes 11 years ago
ThemeAsset.php many phpcs fixes 11 years ago
TooltipAsset.php many phpcs fixes 11 years ago
Widget.php fixed Jui sortable clientEvents naming 11 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.