Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andkon13/yii2-klard
- Owner: andkon13
- Created: 2016-06-29T13:32:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-27T05:50:47.000Z (over 6 years ago)
- Last Synced: 2024-11-13T14:19:18.106Z (about 1 month ago)
- Topics: citys, kladr, widget, yii, yii2
- Language: PHP
- Homepage: http://kladr.ru
- Size: 12.7 KB
- Stars: 15
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yii2-klard
widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2install:
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);
```