kartik-v / yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).
Other
45 stars 17 forks source link

Usage without bootstrap #19

Closed yujin1st closed 8 years ago

yujin1st commented 8 years ago

Now widget requires assets that loads bootstrap.css. Even if i redeclare it, there is kartik\base\WidgetTrait that i can't override and it loads css anyway. This all means that i can't use plugin on frontend. How can i exclude bootstrap?

kartik-v commented 8 years ago

You need to use yii asset manager in your yii config file to override Asset Bundle CSS/JS settings (you need not be overriding the PHP classes in extensions for this). Read about it in yii2 docs.