Comments (7)
Try set active
state via active
attribute:
$menu->route('page', 'Page 1', [1], [
'active' => function() {
return URL::full() == route('page', 1);
}
]);
from menus.
Hi @gravitano,
Thanks for your response but i want return "active" state with any value of $id
in my route:
page_show/{id}
from menus.
hi @dr-martin, @gravitano did one of you find a solution for this? I have the same issue
from menus.
@LonnyX Not yet, i changed this library for my purposes.
from menus.
It would be nice if you can share your purposes, it can help some poeple
from menus.
@LonnyX this problem is the most important limitation for me
from menus.
@dr-martin @LonnyX that's my solution
Menu::modify('adminlte-sidebar', function($menu)
{
$menu->setView('vendor.pingpong.menus.adminlte.default');
$menu->dropdown('Imóveis', function ($sub) {
$sub->route('admin.properties.finalities.index', 'Finalidade', [], 1
, ['icon' => 'fa fa-circle-o', 'active' => function() {
$url = parse_url(route('admin.properties.finalities.index'));
$path = trim($url['path'], '/');
return request()->is($path . '*');
}]);
}, 20, ['icon' => 'fa fa-home']);
});
from menus.
Related Issues (20)
- Ordering menu items HOT 2
- Pingpong menus {{ csrf_token() }} issue with laravel 5.1.6 HOT 1
- Database menus HOT 7
- Polymorphic / Model support HOT 1
- image as title HOT 1
- Artisan error HOT 1
- illuminate/support v5.1.1 requires php >=5.5.9
- Conflict facades
- Not works anymore... HOT 7
- Laravel 5.2 problem HOT 1
- Object of class Illuminate\Routing\UrlGenerator could not be converted to string HOT 2
- Title in dividers ?
- Menu not active
- Modular Menu? HOT 1
- Auth Role with menu
- Docs is down... HOT 1
- Please support Laravel 5.3
- Docs leads to scam site HOT 3
- Error package:discover !
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 menus.