Defines the fluent API for configuring ToolBarItemButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolBarItemButtonBuilder
Inheritance: objectToolBarItemButtonBuilder
Inherited Members
Constructors
ToolBarItemButtonBuilder method.
public ToolBarItemButtonBuilder(ToolBarItemButton container)
Properties
Gets the settings being configured.
protected ToolBarItemButton Container { get; }
Methods
Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies whether the button is initially enabled or disabled.
public ToolBarItemButtonBuilder Enable(bool value)
The value for Enable
Returns:Returns the current ToolBarItemButtonBuilder instance.
Assigns the button to a group. Applicable only for the children of a ButtonGroup that has togglable true.
public ToolBarItemButtonBuilder Group(string value)
The value for Group
Returns:Returns the current ToolBarItemButtonBuilder instance.
Determines if the button is visible or hidden. By default the buttons are visible.
public ToolBarItemButtonBuilder Hidden()
Returns the current ToolBarItemButtonBuilder instance.
Determines if the button is visible or hidden. By default the buttons are visible.
public ToolBarItemButtonBuilder Hidden(bool value)
The value for Hidden
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the HTML attributes of a ButtonGroup's button.
public ToolBarItemButtonBuilder HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the HTML attributes of a ButtonGroup's button.
public ToolBarItemButtonBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:Returns the current ToolBarItemButtonBuilder instance.
Sets icon for the menu button. 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 ToolBarItemButtonBuilder Icon(Action<ToolBarItemButtonIconSettingsBuilder> configurator)
The ToolBarItemButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ToolBarItemButtonBuilder .
Sets icon for the menu button. 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 ToolBarItemButtonBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ToolBarItemButtonBuilder .
Specifies the ID of the button.
public ToolBarItemButtonBuilder Id(string value)
The value for Id
Returns:Returns the current ToolBarItemButtonBuilder instance.
If set, the ToolBar will render an image with the specified URL in the button.
public ToolBarItemButtonBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies if the toggle button is initially selected. Applicable only for the children of a ButtonGroup that has togglable true.
public ToolBarItemButtonBuilder Selected()
Returns the current ToolBarItemButtonBuilder instance.
Specifies if the toggle button is initially selected. Applicable only for the children of a ButtonGroup that has togglable true.
public ToolBarItemButtonBuilder Selected(bool value)
The value for Selected
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies where the icon of the button will be displayed. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder ShowIcon(ShowIn value)
The value for ShowIcon
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies where the text of the menu button will be displayed. Applicable only for the buttons of a ButtonGroup.
public ToolBarItemButtonBuilder ShowText(ShowIn value)
The value for ShowText
Returns:Returns the current ToolBarItemButtonBuilder instance.
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public ToolBarItemButtonBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the text of the menu button.
public ToolBarItemButtonBuilder Text(string value)
The value for Text
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies if the button is togglable, e.g. has a selected and unselected state. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder Togglable(bool value)
The value for Togglable
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder Toggle(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.
public ToolBarItemButtonBuilder Toggle(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current ToolBarItemButtonBuilder instance.
Specifies the url of the button to navigate to.
public ToolBarItemButtonBuilder Url(string value)
The value for Url
Returns:Returns the current ToolBarItemButtonBuilder instance.