ClassTelerikMenu<TItem>
The class for the Telerik Menu Component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public class TelerikMenu<TItem> : HierarchicalBindingComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IMenuPopupContainer
Inheritance: objectComponentBaseBaseComponentBindingComponentBaseHierarchicalBindingComponentBaseTelerikMenu<TItem>
Implements:
Inherited Members
Constructors
TelerikMenu()
Declaration
public TelerikMenu()
Properties
CloseOnClick
Determines whether the menu popups should close on click.
Declaration
[Parameter]
public bool CloseOnClick { get; set; }
Property Value
Data
Defines the Menu's Data.
Declaration
[Parameter]
public IEnumerable<TItem> Data { get; set; }
Property Value
IEnumerable<TItem>
DisabledField
Defines the Disabled DataField of the DataSource.
Declaration
[Parameter]
public string DisabledField { get; set; }
Property Value
HideOn
Define the event that triggers closing the popup that contains the menu items.
Declaration
[Parameter]
public MenuHideEvent HideOn { get; set; }
Property Value
ItemTemplate
Defines the template for the items.
Declaration
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
RenderFragment<TItem>
MenuSettings
Specifies the menu settings.
Declaration
[Parameter]
public RenderFragment MenuSettings { get; set; }
Property Value
OnClick
Defines the OnClick Event which is fired when clicking on a menu item.
Declaration
[Parameter]
public EventCallback<TItem> OnClick { get; set; }
Property Value
EventCallback<TItem>
OnItemRender
Fires when a Menu item is being rendered. Can be used to provide custom styling for the Menu's items.
Declaration
[Parameter]
public Action<MenuItemRenderEventArgs> OnItemRender { get; set; }
Property Value
Orientation
Defines the Orientation of Menu - vertical or horizontal.
Declaration
[Parameter]
public MenuOrientation Orientation { get; set; }
Property Value
SeparatorField
Defines the Separator DataField of the DataSource.
Declaration
[Parameter]
public string SeparatorField { get; set; }
Property Value
ShowOn
Define the event that triggers the opening of the menu.
Declaration
[Parameter]
public MenuShowEvent ShowOn { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides