Skip to main content

ToolbarItemBuilder Methods

Represents a Toolbar item.
Name Description
CssClass(JS) Specifies a CSS class to be applied to the item. Mirrors the client-side cssClass option.
CssClass(String) Specifies a CSS class to be applied to the item. Mirrors the client-side cssClass option.
Disabled(JS) Specifies whether the UI component item responds to user interaction. Mirrors the client-side disabled option.
Disabled(Boolean) Specifies whether the UI component 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.
Html(JS) Specifies the HTML markup to be inserted into the item element. Mirrors the client-side html option.
Html(String) Specifies the HTML markup to be inserted into the item element. Mirrors the client-side html option.
LocateInMenu(ToolbarItemLocateInMenuMode) Specifies when to display an item in the toolbar's overflow menu. Mirrors the client-side locateInMenu option.
Location(ToolbarItemLocation) Specifies a location for the item on the toolbar. Mirrors the client-side location option.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MenuItemTemplate(JS) Specifies the client-side menuItemTemplate.
MenuItemTemplate(RazorBlock) Specifies the client-side menuItemTemplate.
MenuItemTemplate(TemplateName) Specifies the client-side menuItemTemplate.
MenuItemTemplate(String) Specifies the client-side menuItemTemplate.
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.
ShowText(ToolbarItemShowTextMode) Specifies when to display the text for the UI component item. Mirrors the client-side showText 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 text displayed for the UI component item. Mirrors the client-side text option.
Text(String) Specifies text displayed for the UI component item. Mirrors the client-side text option.
ToString() Returns a string that represents the current object. Inherited from Object.
Visible(JS) Specifies whether or not a UI component item must be displayed. Mirrors the client-side visible option.
Visible(Boolean) Specifies whether or not a UI component item must be displayed. Mirrors the client-side visible option.
Widget(Func<ToolbarItemFactory, WidgetBuilder>) Configures a control that represents a toolbar item.
See Also