| 1 | <?php |
||
| 14 | class QueryBuilderAsset extends AssetBundle { |
||
| 15 | |||
| 16 | public $sourcePath = '@bower/jquery-querybuilder/dist'; |
||
| 17 | |||
| 18 | public $js = [ |
||
| 19 | 'js/query-builder.standalone.min.js', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | public $css = [ |
||
| 23 | 'css/query-builder.default.min.css', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | public $depends = [ |
||
| 27 | 'yii\web\JqueryAsset', |
||
| 28 | 'leandrogehlen\querybuilder\BootstrapAsset', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * check wether this app has bsVersion and use bs4 as default bsVersion |
||
| 33 | * because many yii2 user use kartik-v ekstension, we follow his conventions in set the bsVersion |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | * @author @hoaah ([email protected]) |
||
| 37 | */ |
||
| 38 | public function isBs4() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritdoc |
||
| 48 | */ |
||
| 49 | public function init() |
||
| 60 | } |
||
| 61 |