3ch3r46 / bootui-typeahead
The twitter bootstrap typeahead extension for yii 2 framework
1.0.0
2015-01-17 02:58 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-19 15:36:17 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 3ch3r46/bootui-typeahead "*"
or add
"3ch3r46/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,
]); ?>
<?= $form->field($model, 'attribute')
->widget(Typeahead::className(),[
'source' => ['example','bootui','twitter','typeahead','bootstrap'],
'limit' => 10,
'scrollable' => true,
]) ?>