moonlandsoft / bootui-typeahead
The twitter bootstrap typeahead extension for yii 2 framework
Installs: 197
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-11-09 17:03:56 UTC
README
The twitter bootstrap typeahead extension for yii 2 framework
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist moonlandsoft/bootui-typeahead "*"
or add
"moonlandsoft/bootui-typeahead": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \bootui\typeahead\Typeahead::widget([ 'source' => ['example','bootui','twitter','typeahead','bootstrap'], 'limit' => 10, 'scrollable' => true, 'addon' => ['prepend' => 'Autocomplete'], ]); ?> <?= $form->field($model, 'attribute') ->widget(Typeahead::className(),[ 'source' => ['example','bootui','twitter','typeahead','bootstrap'], 'limit' => 10, 'scrollable' => true, 'addon' => ['prepend' => 'Autocomplete'], ]) ?>