| 1 | <?php |
||
| 15 | class XEditableAsset extends AssetBundle |
||
| 16 | { |
||
| 17 | const LIBRARY_BOOTSTRAP3 = 'bootstrap3'; |
||
| 18 | const LIBRARY_BOOTSTRAP = 'bootstrap'; |
||
| 19 | const LIBRARY_JQUERYUI = 'jqueryui'; |
||
| 20 | const LIBRARY_JQUERY = 'jquery'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string library to be used: bootstrap, jqueryui, plain jquery |
||
| 24 | */ |
||
| 25 | public $library = self::LIBRARY_BOOTSTRAP3; |
||
| 26 | |||
| 27 | public $sourcePath = '@bower/x-editable/dist'; |
||
| 28 | |||
| 29 | public $depends = [ |
||
| 30 | 'yii\web\YiiAsset', |
||
| 31 | 'yii\bootstrap\BootstrapAsset', |
||
| 32 | 'yii\bootstrap\BootstrapPluginAsset', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | public function registerAssetFiles($view) |
||
| 43 | } |
||
| 44 |