
Yii2-jui (The Jquery UI extension for the Yii framework)
yiisoft/yii2-jui
-
Семенов Александр
- /
- Autre
- /
- il y a 8 ans
- /
- /
- 9098
- /
- 0
Heure de publication: mercredi 24 juin 2015 (il y a 8 ans)
Créé par: Семенов Александр Сергеевич
Catégorie: Autre
Version actuelle:
1 janv. 1970 à 03:00:00 (il y a 53 ans)
Packagist: yiisoft/yii2-jui
: https://github.com/yiisoft/yii2-jui
:
Type: Компонент
JUI Extension for Yii 2
This is the JQuery UI extension for Yii framework 2.0. It encapsulates JQuery UI widgets as Yii widgets, and makes using JQuery UI widgets in Yii applications extremely easy.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
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": "~2.0.0"
to the require section of your composer.json
file.
Usage
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' => ['defaultDate' => '2014-01-01']]) ?>
If you want to use the JUI widget in an ActiveForm, it can be done like this:
<?= $form->field($model,'attributeName')->widget(DatePicker::className(),['clientOptions' => ['defaultDate' => '2014-01-01']]) ?>
Yii Framework 2 jui extension Change Log
2.0.8 under development
- no changes in this release.
2.0.7 November 25, 2017
- Bug #45: Fixed missing close icon in
yii\jui\Dialog
(mtangoo) - Bug #46:
yii\jui\Selectable
add support forbegin()
,end()
widget methods (fdezmc) - Enh #56: Use
jQuery
instead of$
in generated code to avoid conflicts (samdark) - Chg #55:
yii\jui\AutoComplete::run()
now returns output instead of echoing it (unlimix) - Chg #72: Updated jQueryUI dependency to use
1.12.1
as minimum version (samdark)
2.0.6 July 22, 2016
- Bug #36:
yii\jui\Draggable
was using wrong event names (samdark) - Bug #41:
yii\jui\Droppable
andyii\jui\Resizable
were using wrong event names (samdark)
2.0.5 March 17, 2016
- Bug #8607:
yii\jui\Spinner
was using wrong event names (samdark)
2.0.4 May 10, 2015
- Bug #6: When using
DatePicker
translations, asset was registered without timestamp when asset manager$appendTimestamp
was enabled (samdark) - Bug (CVE-2015-3397): Using
Json::htmlEncode()
for safer JSON data encoding in HTML code (samdark, Tomasz Tokarski)
2.0.3 March 01, 2015
- Enh #7127:
name
ormodel
andattribute
are no longer required properties ofyii\jui\InputWidget
(nirvana-msu, cebe)
2.0.2 January 11, 2015
- Enh #6570: Datepicker now uses fallback to find language files, e.g. application language is
de-DE
and the translation files does not exists, it will usede
instead (cebe) - Enh #6471: Datepicker will now show an empty field when value is an empty string (cebe)
2.0.1 December 07, 2014
- no changes in this release.
2.0.0 October 12, 2014
- no changes in this release.
2.0.0-rc September 27, 2014
- Chg #1551: Jui datepicker has a new property
$dateFormat
which is used to set the clientOptiondateFormat
. The new property does not use the datepicker formatting syntax anymore but uses the same as theyii\i18n\Formatter
class which is the ICU syntax for date formatting, you have to adjust all your DatePicker widgets to use the new property instead of setting the dateFormat in the clientOptions (cebe)
2.0.0-beta April 13, 2014
- Bug #1550: fixed the issue that JUI input widgets did not property input IDs. (qiangxue)
- Bug #2514: Jui sortable clientEvents were not working because of wrong naming assumptions. (cebe)
- Enh #2573: Jui datepicker now uses the current application language by default. (andy5)
2.0.0-alpha, December 1, 2013
- Initial release.
dev-master — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
dev-normalize-language-for-asset — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.7 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.6 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.5 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.4 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.3 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.2 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.1 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.0 — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.0-rc — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.0-beta — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
2.0.0-alpha — 1 janv. 1970 à 03:00:00 (il y a 53 ans)
Стандартная установка:
Добавьте composer.json файл вашего проекта:
"yiisoft/yii2-jui": "*"
Запустите обновление зависимостей
Tous les commentaires (0)