Skip to main content

MenuItemBuilder Members

Represents a Menu item.

Constructors

Name Description
MenuItemBuilder(OptionsOwnerContext) For internal use only. Initializes a new MenuItemBuilder class instance.

Methods

Name Description
BeginGroup(JS) Specifies whether a group separator is displayed over the item. Mirrors the client-side beginGroup option.
BeginGroup(Boolean) Specifies whether a group separator is displayed over the item. Mirrors the client-side beginGroup option.
CloseMenuOnClick(JS) Specifies if a menu is closed when a user clicks the item. Does not apply to the root items. Mirrors the client-side closeMenuOnClick option.
CloseMenuOnClick(Boolean) Specifies if a menu is closed when a user clicks the item. Does not apply to the root items. Mirrors the client-side closeMenuOnClick option.
Disabled(JS) Specifies whether the menu item responds to user interaction. Mirrors the client-side disabled option.
Disabled(Boolean) Specifies whether the menu item responds to user interaction. Mirrors the client-side disabled option.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
Icon(JS) Specifies the menu item's icon. Mirrors the client-side icon option.
Icon(String) Specifies the menu item's icon. Mirrors the client-side icon option.
Items(Action<CollectionFactory<MenuItemBuilder>>) Provides access to the client-side items option that represents a Menu item collection.
LinkAttr(Object)
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Option(String, Object) Specifies an option by its name.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Selectable(JS) Specifies whether or not a user can select a menu item. Mirrors the client-side selectable option.
Selectable(Boolean) Specifies whether or not a user can select a menu item. Mirrors the client-side selectable option.
Selected(JS) Specifies whether or not the item is selected. Mirrors the client-side selected option.
Selected(Boolean) Specifies whether or not the item is selected. Mirrors the client-side selected option.
Template(JS) Specifies the client-side template.
Template(RazorBlock) Specifies the client-side template.
Template(TemplateName) Specifies the client-side template.
Template(String) Specifies the client-side template.
Text(JS) Specifies the text inserted into the item element. Mirrors the client-side text option.
Text(String) Specifies the text inserted into the item element. Mirrors the client-side text option.
ToString() Returns a string that represents the current object. Inherited from Object.
Url(JS)
Url(String)
Visible(JS) Specifies whether or not the menu item is visible. Mirrors the client-side visible option.
Visible(Boolean) Specifies whether or not the menu item is visible. Mirrors the client-side visible option.
See Also