3ch3r46/bootui-typeahead

yii 2 框架的twitter bootstrap typeahead 扩展

安装: 55

依赖: 0

建议者: 0

安全: 0

类型:yii2-extension

1.0.0 2015-01-17 02:58 UTC

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,
        ]) ?>