Download the PHP package skeeks/cms-dadata-suggest without Composer
On this page you can find all versions of the php package skeeks/cms-dadata-suggest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cms-dadata-suggest
Dadata suggest for SkeekS CMS
Info
Installation
The preferred way to install this extension is through composer.
Either run
or add
Configuration app
Examples
First detect address from api and save to session
First detect address from api and save to session
Address widget
Suggest widget
Suggest widgets in forms
php
$form->field($model, 'post_address')->widget( \skeeks\cms\dadataSuggest\widgets\suggest\DadataSuggestInputWidget::className(), [ 'options' => [ 'placeholder' => "Адрес (улица, дом, кв)", ],
'clientOptions' =>
[
'suggestOptions' =>
[
'triggerSelectOnSpace' => true,
'triggerSelectOnBlur' => true,
'constraints' => [
[
'locations' => \Yii::$app->dadataSuggest->address->getRegionArray(),
'deletable' => false,
'label' => ''
]
],
'restrict_value' => true,
],
'onInit' => new \yii\web\JsExpression(<<<JS
function(e, data)
{
data.DadataSuggest.bind('onSelect', function()
{
data.DadataSuggest.bind('afterSave', function()
{
$.pjax.reload({container:'#sx-cart-full'});
});
data.DadataSuggest.save();
return false;
});
}
JS )
]
]);
?>
##Links
* [Web site](http://en.cms.skeeks.com)
* [Web site (rus)](http://cms.skeeks.com)
* [Author](http://skeeks.com)
* [ChangeLog](https://github.com/skeeks-cms/cms-dadata-suggest/blob/master/CHANGELOG.md)
___
> [![skeeks!](https://skeeks.com/img/logo/logo-no-title-80px.png)](https://skeeks.com)
<i>SkeekS CMS (Yii2) — fast, simple, effective!</i>
[skeeks.com](https://skeeks.com) | [cms.skeeks.com](https://cms.skeeks.com)
All versions of cms-dadata-suggest with dependencies
PHP Build Version
Package Version
Requires
skeeks/yii2-dadata-suggest-api Version
^1.0
The package skeeks/cms-dadata-suggest contains the following files
Loading the files please wait ....