Menu
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Menu : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, INavigationItemComponent<MenuItem>, INavigationItemContainer<MenuItem>
Inheritance: objectWidgetBaseMenu
Implements:
Inherited Members
Constructors
public Menu(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
Properties
public PopupAnimation Animation { get; }
public INavigationItemAuthorization Authorization { get; }
Implements:
public bool CloseOnClick { get; set; }
Sets the field of the data item that provides the content of the Menu items.
public string DataContentField { get; set; }
Sets the field of the data item that provides the icon class of the menu items.
public string DataIconClassField { get; set; }
Sets the field of the data item that provides the icon name of the menu items.
public string DataIconField { get; set; }
Sets the field of the data item that provides the image url of the Menu items.
public string DataImageUrlField { get; set; }
public DataSource DataSource { get; }
public string DataSourceId { get; set; }
Sets the field of the data item that provides the sprite css class of the Menu items.
public string DataSpriteCssClassField { get; set; }
Sets the field of the data item that provides the text of the Menu items.
public string DataTextField { get; set; }
Sets the field of the data item that provides the url of the Menu items.
public string DataUrlField { get; set; }
public bool HighlightPath { get; set; }
public int? HoverDelay { get; set; }
Specifies the position of the icon in the Menu items using the text content as a reference.
public IconPosition? IconPosition { get; set; }
public Action<MenuItem> ItemAction { get; set; }
Implements:
public MenuOpenOnClick OpenOnClick { get; }
public MenuOrientation Orientation { get; set; }
public PopupCollision PopupCollision { get; }
public MenuScrollable Scrollable { get; }
public SecurityTrimming SecurityTrimming { get; set; }
Implements:
public IUrlGenerator UrlGenerator { get; }
Implements:
Methods
public override IDictionary<string, object> Serialize()
Overrides:
public override void VerifySettings()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: