Skip to content

Commit 802aa60

Browse files
dimodidimodi
authored andcommitted
Explanation polishing
1 parent 18f53ac commit 802aa60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/menu/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The Menu item template can contain arbitrary content according such as HTML mark
2424

2525
### Use ItemTemplate for Navigation
2626

27-
The following example shows how to render `<NavLink>` tags inside the Menu and use them for navigation instead of the [built-in Menu navigation mechanism]({%slug menu-navigation%}). This approach requires the URL property name to be different from `Url`. In addition to rendering customization, `<NavLink>` also supports the `target="_blank"` attribute.
27+
The following example shows how to render `<NavLink>` tags inside the Menu and use them for navigation instead of the [built-in Menu navigation mechanism]({%slug menu-navigation%}). This approach requires the URL property name to be different from `Url`. [`<NavLink>` also supports the `target="_blank"` attribute](#use-itemtemplate-for-styling-and-target_blank).
2828

2929
>caption Use Menu item template for navigation
3030
@@ -153,7 +153,7 @@ The following example shows how to render `<NavLink>` tags inside the Menu and u
153153

154154
### Use ItemTemplate for Styling and target="_blank"
155155

156-
The example below shows a Menu configuration that is suitable for use in `MainLayout.razor`.
156+
The example below shows a Menu configuration that is suitable for use in `MainLayout.razor`. The implementation disables the [built-in Menu navigation]({%slug menu-navigation}) because the URL property is not `Url` and `UrlField` is not set. The sample also uses `<NavLink>` tags with `target="_blank"` to open external links in a new browser window.
157157

158158
>caption Use Menu item template to distinguish the current page and open external links in new browser windows
159159

0 commit comments

Comments
 (0)