Closed deshario closed 6 years ago
You need to set the active
key of an item.
See also https://github.com/dmstr/yii2-adminlte-asset/blob/master/widgets/Menu.php
I set to 'active' => '#'
... its working but i want to know that what should be the value of 'active' => ''
[ 'label' => 'Tools', 'active' => '#', 'icon' => 'cog', 'url' => '#', 'items' => [ ['label' => 'Verifications', 'icon' => 'qrcode', 'url' => ['donation-verified/index'],], ['label' => 'Profile', 'icon' => 'user-o', 'url' => ['user/profile'] ], ['label' => 'Decryption', 'icon' => 'user-o', 'url' => ['user/hashing'] ], ['label' => 'Logout', 'url' => ['site/logout'], 'template' => '{label}'], ], ]
[
'active' => true,
'label' => 'Verifications',
'icon' => 'qrcode',
'url' => ['donation-verified/index'],
],
How to open treeview menu-open by default ... like in the image below .. is there way to do it in yii2..