Comments (8)
I don't want to modify the class name. I'd like to have an active class name on active elements.
This is not something I set manually... but has to be dynamic.
from menus.
I don't know. Maybe you can create a custom presenter class to allow that.
from menus.
nWidart. Could you explain better how you want to handle the classes ? I do not understand
from menus.
Well, since we add an URL to the MenuItem, it can set the active classes if needed. This is how we do it on a package at work for generating sidebar menus: https://github.com/Maatwebsite/Laravel-Sidebar/blob/master/src/Maatwebsite/Sidebar/SidebarItem.php#L227-L245
@gravitano I don't think this should be in a custom presenter, but in the core of the package itself, since this is basically always needed.
from menus.
any update ? As this is still not working.
from menus.
Do you mean change the active
class name ?
from menus.
Yes.
from menus.
You can modify the menu's view presenter to allow that. Just publish the package's views and modify the class name as you want. http://sky.pingpong-labs.com/docs/2.1/menus#view-presenter
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
- Active item on menu items having route with any parameter HOT 7
- 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.