New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Represents a base implementation for menu items that provides navigation functionality.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MenuItemBase : INavigationItem

Inheritance: objectMenuItemBase

Implements: INavigationItem

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public MenuItemBase()

Properties

Configures the action method name for routing when the menu item is clicked.

C#
public string Action { get; set; }

Implements: INavigationItem.Action

Specifies the actions content of the menu item, such as keyboard shortcuts.

C#
public string Actions { get; set; }

Configures the area name for routing when the menu item is clicked.

C#
public string Area { get; set; }

Implements: INavigationItem.Area

Configures the child menu items for creating hierarchical menu structures.

C#
public IEnumerable<MenuItemBase> Children { get; set; }

Configures the custom content for the menu item.

C#
public string Content { get; set; }

Implements: INavigationItem.Content

Configures the HTML attributes for the content element of the menu item.

C#
public object ContentHtmlAttributes { get; set; }

Implements: INavigationItem.ContentHtmlAttributes

Configures the controller name for routing when the menu item is clicked.

C#
public string Controller { get; set; }

Implements: INavigationItem.Controller

Specifies the description of the menu item.

C#
public string Description { get; set; }

Configures a value indicating whether the menu item is enabled and can be interacted with.

C#
public bool? Enabled { get; set; }

Implements: INavigationItem.Enabled

Indicates whether the text content of the menu item should be HTML encoded.

C#
public bool? Encoded { get; set; }

Implements: INavigationItem.Encoded

Configures the URL fragment (anchor) for the menu item.

C#
public string Fragment { get; set; }

Implements: INavigationItem.Fragment

Indicates whether the menu item is rendered as a decorative, non-interactive group header instead of a regular selectable menu item.

C#
public bool? GroupHeader { get; set; }

Configures the host name for the menu item URL.

C#
public string Host { get; set; }

Implements: INavigationItem.Host

Configures the icon for the menu item.

C#
public string Icon { get; set; }

Implements: INavigationItem.Icon

Configures the CSS class name for the icon of the menu item.

C#
public string IconClass { get; set; }

Implements: INavigationItem.IconClass

Configures the HTML attributes for the image element of the menu item.

C#
public object ImageHtmlAttributes { get; set; }

Implements: INavigationItem.ImageHtmlAttributes

Configures the URL of the image to display for the menu item.

C#
public string ImageUrl { get; set; }

Implements: INavigationItem.ImageUrl

Configures the HTML attributes for the link element of the menu item.

C#
public object LinkHtmlAttributes { get; set; }

Implements: INavigationItem.LinkHtmlAttributes

Configures the protocol (http/https) for the menu item URL.

C#
public string Protocol { get; set; }

Implements: INavigationItem.Protocol

Configures the route name for routing when the menu item is clicked.

C#
public string Route { get; set; }

Implements: INavigationItem.Route

Configures the route values (parameters) for routing when the menu item is clicked.

C#
public IDictionary<string, string> RouteValues { get; set; }

Implements: INavigationItem.RouteValues

Configures a value indicating whether the menu item is currently selected.

C#
public bool? Selected { get; set; }

Implements: INavigationItem.Selected

Indicates whether the menu item acts as a separator.

C#
public bool? Separator { get; set; }

Implements: INavigationItem.Separator

Configures the display text for the menu item.

C#
public string Text { get; set; }

Implements: INavigationItem.Text

Configures the URL that the menu item navigates to when clicked.

C#
public string Url { get; set; }

Implements: INavigationItem.Url

Indicates whether the menu item is visible.

C#
public bool? Visible { get; set; }

Implements: INavigationItem.Visible