Skip to content

Make top of submenu a link #66

@dougd-unc

Description

@dougd-unc

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'
				]
			]);

		},);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions