anmaslov / yii2-autocomplete-widget
Ajax AutoComplete widget for Yii2
Installs: 4 349
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 1
Type:yii2-extension
pkg:composer/anmaslov/yii2-autocomplete-widget
Requires
- bower-asset/devbridge-autocomplete: *
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2025-12-07 00:23:08 UTC
README
The Autocomplete extension is a Yii2 wrapper widget for for the Autocomplete for jQuery plugin. AutoComplete allows you to easily create autocomplete/autosuggest boxes for text input fields.
Has no dependencies other than jQuery. The widget is specially styled for Bootstrap 3.
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require anmaslov/yii2-autocomplete-widget "*"
or add
"anmaslov/yii2-autocomplete-widget": "*"
to the require section of your composer.json file.
Usage
Get data from model
$data = Link::find() ->select('title as value') ->asArray() ->all();
In view
use anmaslov\autocomplete\AutoComplete; echo AutoComplete::widget([ 'name' => 'link', 'data' => $model, 'clientOptions' => [ 'minChars' => 2, ], ])
License
yii2-autocomplete-widget is released under the MIT License.