The requested page is not available for the requested platform. You are viewing the content for Default platform.

MenuItemBuilder Methods

This section lists the data source fields that are used in a default item template.

Name Description
BeginGroup(Boolean)

Specifies whether a group separator is displayed over the item.

BeginGroup(JS)

Specifies whether a group separator is displayed over the item.

CloseMenuOnClick(Boolean)

Specifies if a menu is closed when a user clicks the item.

CloseMenuOnClick(JS)

Specifies if a menu is closed when a user clicks the item.

Disabled(Boolean)

Specifies whether or not the menu item is disabled.

Disabled(JS)

Specifies whether or not the menu item is disabled.

Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(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.

Icon(String)

Specifies the menu item's icon.

Items(Action<CollectionFactory<MenuItemBuilder>>)

Holds an array of menu items.

MemberwiseClone() 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(Boolean)

Specifies whether or not a user can select a menu item.

Selectable(JS)

Specifies whether or not a user can select a menu item.

Selected(Boolean)

Specifies whether or not the item is selected.

Selected(JS)

Specifies whether or not the item is selected.

Template(JS)

Specifies an item template that should be used to render this item only.

Template(RazorBlock)

Specifies an item template that should be used to render this item only.

Template(String)

Specifies an item template that should be used to render this item only.

Template(TemplateName)

Specifies an item template that should be used to render this item only.

Text(JS)

Specifies the text inserted into the item element.

Text(String)

Specifies the text inserted into the item element.

ToString() Returns a string that represents the current object.
(Inherited from Object)
Visible(Boolean)

Specifies whether or not the menu item is visible.

Visible(JS)

Specifies whether or not the menu item is visible.

See Also