You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/contextmenu/events.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,26 +16,27 @@ This article explains the events available in the Telerik Context Menu for Blazo
16
16
17
17
## OnClick
18
18
19
-
The `OnClick` event fires when the user clicks or taps on a menu item. It receives the model of the item as an argument that you can cast to the concrete model type you are using.
19
+
The `OnClick` event fires when the user clicks or taps on a menu item. The event handler receives an argument of type `ContextMenuClickEventArgs<TItem>` with the item model (`args.Item`) and a boolean flag that controls component re-rendering (`args.ShouldRender`) after the event.
20
20
21
-
You can use the `OnClick` event to react to user choices in a menu without using navigation to load new content automatically.
21
+
You can use the `OnClick` event to react to user choices, for example load new content without using navigation.
22
22
23
23
>caption Handle OnClick
24
24
25
25
````CSHTML
26
-
Last clicked item: @ClickedItem?.Text
27
-
<div id="context-menu-target" style="background:yellow;">right click for context menu</div>
26
+
<p>Last clicked item: @ClickedItem?.Text</p>
27
+
28
+
<div id="context-menu-target" style="padding:1em;background:yellow;">right-click for context menu</div>
Copy file name to clipboardExpand all lines: components/drawer/navigation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The Drawer is a different kind of a [menu]({%slug components/menu/overview%}) th
15
15
To use the Drawer for navigating between pages:
16
16
17
17
* Add the Drawer to the `MainLayot.razor` of your app.
18
-
* Put the `@Body` tag in the `<Content>` tag of the drawer.
18
+
* Put the `@Body` tag in the `<DrawerContent>` tag of the drawer.
19
19
* Provide a collection of models that describe the pages you want the user to navigate to.
20
20
21
21
>tip You can find a runnable sample that showcases this in the [Drawer as Side Navigation](https://github.com/telerik/blazor-ui/tree/master/drawer/sidenav) sample project.
@@ -31,9 +31,9 @@ To use the Drawer for navigating between pages:
Copy file name to clipboardExpand all lines: components/drawer/overview.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The <a href="https://www.telerik.com/blazor-ui/drawer" target="_blank">Blazor Dr
16
16
17
17
1. Add the `TelerikDrawer` tag.
18
18
1. Populate its `Data` property with the collection of items you want the user to see.
19
-
1. Place the content of the Drawer in the `<Content>` tag.
19
+
1. Place the content of the Drawer in the `<DrawerContent>` tag.
20
20
* In this example, we keep it simple by using the selected item. See the [Navigation]({%slug drawer-navigation%}) article for a menu-like experience with links.
21
21
22
22
>caption Basic configuration of the Drawer.
@@ -29,7 +29,7 @@ The <a href="https://www.telerik.com/blazor-ui/drawer" target="_blank">Blazor Dr
@* Place your contents here - it can be as simple as text, it can be conditional components or components that
@@ -38,7 +38,7 @@ The <a href="https://www.telerik.com/blazor-ui/drawer" target="_blank">Blazor Dr
38
38
<div class="m-5">
39
39
Selected Item: @SelectedItem?.Text
40
40
</div>
41
-
</Content>
41
+
</DrawerContent>
42
42
</TelerikDrawer>
43
43
44
44
@code {
@@ -73,7 +73,7 @@ The <a href="https://www.telerik.com/blazor-ui/drawer" target="_blank">Blazor Dr
73
73
*`Position` - you can control the position of the Drawer, through the `DrawerPosition` enum.
74
74
The members of the enum are:
75
75
*`Left` - the default position
76
-
*`Right` - the drawer item list will render on the right hand side of the `Content`
76
+
*`Right` - the drawer item list will render on the right hand side of the `DrawerContent`
77
77
78
78
*`Expanded` - two-way bindable property that specifies whether the Drawer is expanded or collapsed. If this parameter is used to expand or collapse the component the animations will not be available. To use animations you have to use the Drawer's [Methods](#methods). You can, however, use the value to implement custom layouts in the drawer [templates]({%slug drawer-templates%}) or in your own layout.
79
79
@@ -85,7 +85,7 @@ The members of the enum are:
85
85
86
86
*`MiniMode` - controls whether there is mini view when the Drawer is collapsed. For more information read the [Mini View]({%slug drawer-mini-mode%}) article.
87
87
88
-
*`Content` - the `<Content>` child tag of `<TelerikDrawer>` is a `RenderFragment` where you put a component or custom HTML as the content of the Drawer - this is what the drawer will push or overlay.
88
+
*`DrawerContent` - the `<DrawerContent>` child tag of `<TelerikDrawer>` is a `RenderFragment` where you put a component or custom HTML as the content of the Drawer - this is what the drawer will push or overlay.
89
89
90
90
*`SelectedItem` - two-way bindable property that contains the currently selected item in the Drawer. For more information read the [Selection]({%slug drawer-selection%}) article.
91
91
@@ -117,7 +117,7 @@ The Drawer methods are accessible through it's reference. The reference exposes
0 commit comments