Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom "active" #34

Closed
TheTechnoMan opened this issue Nov 14, 2014 · 2 comments
Closed

Custom "active" #34

TheTechnoMan opened this issue Nov 14, 2014 · 2 comments

Comments

@TheTechnoMan
Copy link

Currently it will use the class "active" if an element is active as defined in

Menu/Item.php on line 354:

$this->attributes['class'] = Builder::formatGroupClass(array('class' => 'active'), $this->attributes);

However many template use a different class, for example nav-active

Could you please add a config value to customize it?

Thank you very much.

@lavary
Copy link
Owner

lavary commented Nov 21, 2014

Does this: 6893560 work for you?
Just set active_class in the settings file to whatever your layout needs.

You may want to publish the package configs first:

php artisan config:publish lavary/laravel-menu

@TheTechnoMan
Copy link
Author

Thank you very much, that works perfectly fine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants