We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I trying to merge some attr to links when is active, but don't work. How is possible make that.
$backendSideBarMenu = Menu::create('backendSideBarMenu', [ 'auto_activate' => true, 'active_class' => 'shadow-soft-xl rounded-lg bg-white font-semibold text-slate-700', 'active_element' => 'link', ]); $backendSideBarMenu->attr('class', 'flex flex-col pl-0 mb-0'); $backendSideBarMenu->addItem('dashboard', __('Dashboard'), '/dashboard')->activateOnUrls('dashboard'); $backendSideBarMenu->addItem('management', __('Management'), '/management')->activateOnUrls('management/*'); $backendSideBarMenu->items->roots()->attr('class', 'mt-0.5 w-full'); foreach ($backendSideBarMenu->items->roots() as $item) { $item->link->attr('class', 'py-2.7 text-size-sm ease-nav-brand my-0 mx-4 flex items-center whitespace-nowrap px-4 transition-colors'); }
The active link only have the normal class py-2.7 ... when have to by shadow-soft-... py-2.7 ...
py-2.7 ...
shadow-soft-... py-2.7 ...
Best Regards.
Yoinier.
The text was updated successfully, but these errors were encountered:
Other thing I are using the ServiceProvider method, but not work the auto activate procedure.
Thanks
Sorry, something went wrong.
How do you render the menu in the blade template?
{!! Menu::get('backendSideBarMenu')->render('ul') !!}
fulopattila122
No branches or pull requests
I trying to merge some attr to links when is active, but don't work. How is possible make that.
The active link only have the normal class
py-2.7 ...
when have to byshadow-soft-... py-2.7 ...
Best Regards.
Yoinier.
The text was updated successfully, but these errors were encountered: