3ch3r46 / bootui-typeahead
yii 2 框架的twitter bootstrap typeahead 扩展
    1.0.0
    2015-01-17 02:58 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-24 14:53:07 UTC
README
yii 2 框架的twitter bootstrap typeahead 扩展
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一
php composer.phar require --prefer-dist 3ch3r46/bootui-typeahead "*"
或在您的 composer.json 文件的 require 部分添加
"3ch3r46/bootui-typeahead": "*"
到
使用
扩展安装后,只需在代码中通过
<?= \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,
        ]) ?>