Comments (5)
Please provide an example showing the error.
from yii2-adminlte-asset.
It shows any errors on console, but not opening
And array passed to menu widget:
[
'label' => 'Same tools',
'icon' => 'fa fa-share',
'url' => '#',
'options'=>['class'=>'treeview'],
'items' => [
[
'label' => 'Level One',
'icon' => 'fa fa-circle-o',
'url' => '#',
],
[
'label' => 'Level One',
'icon' => 'fa fa-circle-o',
'url' => '#',
],
],
]
from yii2-adminlte-asset.
Which version do you use?
Did you try the example views?
https://github.com/dmstr/yii2-adminlte-asset/blob/master/example-views/yiisoft/yii2-app/layouts/left.php#L12
from yii2-adminlte-asset.
I am using version ~2.3.0, I also tried example that you gave but didn't work
from yii2-adminlte-asset.
I tried to use as example in pages it worked properly
<ul class="sidebar-menu" data-widget="tree">
<li class="header">MAIN NAVIGATION</li>
<?php foreach ($menu as $item) {
if (isset($item['items'])) { ?>
<li class="treeview">
<a href="#">
<i class="<?=$item['icon']?>"></i> <span><?= $item['label'] ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php foreach ($item['items'] as $child) { ?>
<li><a href="<?=Url::to($child['url'])?>"><i class="<?=$child['icon']?>"></i> <?=$child['label']?></a></li>
<?php } ?>
</ul>
</li>
<?php } else {
$icon=HTML::tag('i','',['class'=>(isset($item['icon'])) ? $item['icon'] : '']);
echo Html::tag('li', Html::a($icon.$item['label'], (isset($item['url'])) ? $item['url'] : ''));
// echo Html::tag('li', Html::a($item['label'], (isset($item['url']))?$item['url']:'' ), (isset($item['options']))?$item['options']:'');
}
} ?>
</ul>
but it is a bit hard-coded. Is it correct, if correct you can close this issue))
from yii2-adminlte-asset.
Related Issues (20)
- AdminLTE 3 HOT 49
- Modify size of left panel HOT 2
- The file or directory to be published does not exist HOT 2
- Update to AdminLTE 2.4.9 HOT 5
- Missing Layout Options tab?! HOT 5
- Box Refresh won't reload HOT 3
- url type error: How to prevent the Adminlte Asset layout render? i.e: http://backend.test/hfffhfhf HOT 2
- Add `badge` property to widgets\Menu HOT 3
- after yii2 combining-compressing-assets _all-skins.min.css link to my project web folder HOT 3
- Enable Guided Tour HOT 1
- Modal form HOT 1
- GET .../css/AdminLTE.min.css net::ERR_ABORTED 500 HOT 1
- Class 'dmstr\adminlte\web\AdminLteAsset' not found Version 3.0.0 beta1 HOT 1
- menu's options HOT 1
- no menu divider in left.php possible. HOT 1
- kartik's bootstrap 4 dropdowns not work well in adminlte 3
- The support for php 5.4 HOT 1
- Doesn't work kartik GridView in adminlte2. Не работает kartik GridView на adminlte
- bootstrap 5 support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-adminlte-asset.