bootui-typeahead
The twitter bootstrap typeahead extension for yii 2 framework, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist moonlandsoft/bootui-typeahead "*"
or add, (*4)
"moonlandsoft/bootui-typeahead": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
= \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'],
]) ?>