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

Make top of submenu a link #66

Open
dougd-unc opened this issue Aug 15, 2023 · 0 comments
Open

Make top of submenu a link #66

dougd-unc opened this issue Aug 15, 2023 · 0 comments

Comments

@dougd-unc
Copy link

Hi. Is there a way to make the top of the submenu a link as well? I don't see any parameters to make the top of the menu a link in that in $Iterm->dropdown(). Is there a way to add it after the submenu has been created? I need to be able to make that a link as well, but I don't see that as an option.

For example, here, "About" is not clickable and I don't see a way to make it a link to another page:

		$menu->dropdown('About', function ($sub) {

			$sub->add([
				'route' => ['things', []],
				'title' => 'Things',
				'attributes' => [
					'name' => 'things'
				]
			]);

			$sub->add([
				'route' => ['contact', []],
				'title' => 'Contact Us',
				'attributes' => [
					'name' => 'contact'
				]
			]);

		},);
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

1 participant