Defines the fluent API for configuring ToolBarItemMenuButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolBarItemMenuButtonBuilder
Inheritance: objectToolBarItemMenuButtonBuilder
Inherited Members
Constructors
ToolBarItemMenuButtonBuilder method.
public ToolBarItemMenuButtonBuilder(ToolBarItemMenuButton container)
Properties
Gets the settings being configured.
protected ToolBarItemMenuButton Container { get; }
Methods
Specifies whether the menu button is initially enabled or disabled.
public ToolBarItemMenuButtonBuilder Enable(bool value)
The value for Enable
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Determines if a button is visible or hidden. By default buttons are visible.
public ToolBarItemMenuButtonBuilder Hidden()
Returns the current ToolBarItemMenuButtonBuilder instance.
Determines if a button is visible or hidden. By default buttons are visible.
public ToolBarItemMenuButtonBuilder Hidden(bool value)
The value for Hidden
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Specifies the HTML attributes of a menu button.
public ToolBarItemMenuButtonBuilder HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Specifies the HTML attributes of a menu button.
public ToolBarItemMenuButtonBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Sets icon for the menu buttons. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ToolBarItemMenuButtonBuilder Icon(Action<ToolBarItemMenuButtonIconSettingsBuilder> configurator)
The ToolBarItemMenuButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ToolBarItemMenuButtonBuilder .
Sets icon for the menu buttons. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ToolBarItemMenuButtonBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ToolBarItemMenuButtonBuilder .
Specifies the ID of the menu buttons.
public ToolBarItemMenuButtonBuilder Id(string value)
The value for Id
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
If set, the ToolBar will render an image with the specified URL in the menu button.
public ToolBarItemMenuButtonBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Defines a CSS class (or multiple classes separated by spaces) which will be used for menu button icon.
public ToolBarItemMenuButtonBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Specifies the text of the menu buttons.
public ToolBarItemMenuButtonBuilder Text(string value)
The value for Text
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.
Specifies the url of the menu button to navigate to.
public ToolBarItemMenuButtonBuilder Url(string value)
The value for Url
Returns:Returns the current ToolBarItemMenuButtonBuilder instance.