Class TelerikMenu<TItem>
The class for the Telerik Menu Component.
Inheritance
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikMenu<TItem> : HierarchicalBindingComponentBase, IDisposable, IHierarchicalItemBinding, IItemBinding, IMenuPopupContainer
Type Parameters
TItem
|
Constructors
TelerikMenu()
Declaration
public TelerikMenu()
Properties
CloseOnClick
Determines whether the menu popups should close on click.
Declaration
public bool CloseOnClick { get; set; }
Property Value
System.Boolean
|
Data
Defines the Menu's Data.
Declaration
public IEnumerable<TItem> Data { get; set; }
Property Value
System.Collections.Generic.IEnumerable<TItem>
|
DisabledField
Defines the Disabled DataField of the DataSource.
Declaration
public string DisabledField { get; set; }
Property Value
System.String
|
HideOn
Define the event that triggers closing the popup that contains the menu items.
Declaration
public MenuHideEvent HideOn { get; set; }
Property Value
MenuHideEvent
|
ItemTemplate
Defines the template for the items.
Declaration
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<TItem>
|
MenuSettings
Specifies the menu settings.
Declaration
public RenderFragment MenuSettings { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
OnClick
Defines the OnClick Event which is fired when clicking on a menu item.
Declaration
public EventCallback<TItem> OnClick { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TItem>
|
OnItemRender
Fires when a Menu item is being rendered. Can be used to provide custom styling for the Menu's items.
Declaration
public Action<MenuItemRenderEventArgs> OnItemRender { get; set; }
Property Value
System.Action<MenuItemRenderEventArgs>
|
Orientation
Defines the Orientation of Menu - vertical or horizontal.
Declaration
public MenuOrientation Orientation { get; set; }
Property Value
MenuOrientation
|
SeparatorField
Defines the Separator DataField of the DataSource.
Declaration
public string SeparatorField { get; set; }
Property Value
System.String
|
ShowOn
Define the event that triggers the opening of the menu.
Declaration
public MenuShowEvent ShowOn { get; set; }
Property Value
MenuShowEvent
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
System.Threading.Tasks.Task
|
Explicit Interface Implementations
IMenuPopupContainer.AddPopupSettings(MenuPopupSettingsBase)
Declaration
void IMenuPopupContainer.AddPopupSettings(MenuPopupSettingsBase popupSettings)
Parameters
MenuPopupSettingsBase
popupSettings
|
Implements
IMenuPopupContainer.RemovePopupSettings()
Declaration
void IMenuPopupContainer.RemovePopupSettings()