Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andkon13/yii2-klard

widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2
https://github.com/andkon13/yii2-klard

citys kladr widget yii yii2

Last synced: about 1 month ago
JSON representation

widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2

Awesome Lists containing this project

README

        

# yii2-klard
widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2

install:
composer `require andkon/yii2kladr`

use:
```
$address = new Address(); // your address model

$form = ActiveForm::begin(); // your form

echo $form->field($address, 'city_id')
->widget(Kladr::className(), [
'type' => Kladr::TYPE_CITY,
'options' => [
'placeHolder' => $model->getAttributeLabel('city_id'),
'class' => 'form__input'
]
])
->label(false);
```