You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-69Lines changed: 23 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ For details see [#140](https://github.com/dmstr/yii2-adminlte-asset/issues/140).
48
48
49
49
### Upgrading
50
50
51
-
When upgrading please see the [AdminLTE upgrade guide](https://adminlte.io/docs/2.4/upgrade-guide) for adjustments you need to make in your views.
51
+
When upgrading please see the [AdminLTE upgrade guide](https://adminlte.io/docs/3.0/upgrade-guide.html) for adjustments you need to make in your views.
52
52
53
53
### Composer installation
54
54
@@ -113,7 +113,7 @@ Customization
113
113
114
114
### AdminLTE Plugins
115
115
116
-
Assets for [AdminLTE plugins](https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#plugins) are not included
116
+
Assets for [AdminLTE plugins](https://adminlte.io/docs/3.0/dependencies.html#plugins) are not included
117
117
in our `AdminLteAsset` but you can find these files in your vendor directory under `vendor/almasaeed2010/adminlte/plugins`.
118
118
So if you want to use any of them we recommend to create a custom bundle where you list the plugin files you need:
119
119
@@ -123,16 +123,16 @@ use yii\web\AssetBundle;
123
123
class AdminLtePluginAsset extends AssetBundle
124
124
{
125
125
public $sourcePath = '@vendor/almasaeed2010/adminlte/plugins';
126
-
public $js = [
127
-
'datatables/dataTables.bootstrap.min.js',
128
-
// more plugin Js here
129
-
];
130
126
public $css = [
131
-
'datatables/dataTables.bootstrap.css',
127
+
'chart.js/Chart.min.css',
132
128
// more plugin CSS here
133
129
];
130
+
public $js = [
131
+
'chart.js/Chart.bundle.min.js'
132
+
// more plugin Js here
133
+
];
134
134
public $depends = [
135
-
'dmstr\web\AdminLteAsset',
135
+
'dmstr\adminlte\web\AdminLteAsset',
136
136
];
137
137
}
138
138
```
@@ -141,54 +141,7 @@ As this asset depends on our `AdminLteAsset` it's the only asset you have to reg
141
141
your `main.php` layout file.
142
142
143
143
144
-
### Skins
145
-
146
-
By default the extension uses blue skin for AdminLTE. You can change it in config file.
147
-
148
-
```php
149
-
'components' => [
150
-
'assetManager' => [
151
-
'bundles' => [
152
-
'dmstr\web\AdminLteAsset' => [
153
-
'skin' => 'skin-black',
154
-
],
155
-
],
156
-
],
157
-
],
158
-
```
159
-
160
-
And then just replace class of body `skin-blue`. You can use `AdminLteHelper::skinClass()` if you don't want to alter every view file when you change skin color.
**Note:** Use `AdminLteHelper::skinClass()` only if you override the skin through configuration. Otherwise you will not get the correct css class of body.
166
-
167
-
Here is the list of available skins:
168
-
169
-
```
170
-
"skin-blue",
171
-
"skin-black",
172
-
"skin-red",
173
-
"skin-yellow",
174
-
"skin-purple",
175
-
"skin-green",
176
-
"skin-blue-light",
177
-
"skin-black-light",
178
-
"skin-red-light",
179
-
"skin-yellow-light",
180
-
"skin-purple-light",
181
-
"skin-green-light"
182
-
```
183
-
184
-
#### Disabling skin file loading, when using bundled assets
185
-
186
-
Yii::$container->set(
187
-
AdminLteAsset::className(),
188
-
[
189
-
'skin' => false,
190
-
]
191
-
);
144
+
### Custom content header
192
145
193
146
If you want to use native DOM of headers AdminLTE
194
147
@@ -201,7 +154,7 @@ If you want to use native DOM of headers AdminLTE
201
154
then you can follow the code:
202
155
203
156
```php
204
-
/* @var $this yii\web\View */
157
+
/* @var yii\web\View $this */
205
158
206
159
$this->params['breadcrumbs'][] = 'About';
207
160
@@ -217,40 +170,41 @@ About <small>static page</small>
217
170
218
171
### Left sidebar menu - Widget Menu
219
172
220
-
If you need to separate sections of the menu then just add the `li.header`item to `items`
173
+
If you need to separate sections of the menu then just add the `header`option to item in`items`
0 commit comments