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
0ff8518c21
|
11 years ago | |
---|---|---|
.. | ||
assets | 11 years ago | |
Accordion.php | 11 years ago | |
AccordionAsset.php | 11 years ago | |
AutoComplete.php | 11 years ago | |
AutoCompleteAsset.php | 11 years ago | |
ButtonAsset.php | 11 years ago | |
CHANGELOG.md | 11 years ago | |
CoreAsset.php | 11 years ago | |
DatePicker.php | 11 years ago | |
DatePickerAsset.php | 11 years ago | |
DatePickerRegionalAsset.php | 11 years ago | |
Dialog.php | 11 years ago | |
DialogAsset.php | 11 years ago | |
Draggable.php | 11 years ago | |
DraggableAsset.php | 11 years ago | |
Droppable.php | 11 years ago | |
DroppableAsset.php | 11 years ago | |
EffectAsset.php | 11 years ago | |
InputWidget.php | 11 years ago | |
LICENSE.md | 11 years ago | |
Menu.php | 11 years ago | |
MenuAsset.php | 11 years ago | |
ProgressBar.php | 11 years ago | |
ProgressBarAsset.php | 11 years ago | |
README.md | 11 years ago | |
Resizable.php | 11 years ago | |
ResizableAsset.php | 11 years ago | |
Selectable.php | 11 years ago | |
SelectableAsset.php | 11 years ago | |
Slider.php | 11 years ago | |
SliderAsset.php | 11 years ago | |
SliderInput.php | 11 years ago | |
Sortable.php | 11 years ago | |
SortableAsset.php | 11 years ago | |
Spinner.php | 11 years ago | |
SpinnerAsset.php | 11 years ago | |
Tabs.php | 11 years ago | |
TabsAsset.php | 11 years ago | |
ThemeAsset.php | 11 years ago | |
TooltipAsset.php | 11 years ago | |
Widget.php | 11 years ago | |
composer.json | 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.