Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Closes #22: Removed BoostrapAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrogehlen committed May 31, 2021
1 parent ef53613 commit 3142e80
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ to the require section of your `composer.json` file.
How to use
----------

The extension depends bootstrap css then is necessary adds it in your AppAsset:

```php
class AppAsset extends AssetBundle {


public $js = [
...
];

public $css = [
...
];

public $depends = [
...
'yii\bootstrap\BootstrapAsset', // or 'yii\bootstrap4\BootstrapAsset'
];

}
```



**View**:

```php
Expand Down
18 changes: 0 additions & 18 deletions src/BootstrapAsset.php

This file was deleted.

5 changes: 2 additions & 3 deletions src/QueryBuilderAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class QueryBuilderAsset extends AssetBundle {
];

public $depends = [
'yii\web\JqueryAsset',
'leandrogehlen\querybuilder\BootstrapAsset',
'yii\web\JqueryAsset'
];

}
}

0 comments on commit 3142e80

Please sign in to comment.