ToolBarItemBuilder
Defines the fluent API for configuring ToolBarItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolBarItemBuilder
Inheritance: objectToolBarItemBuilder
Inherited Members
Constructors
ToolBarItemBuilder method.
Properties
Gets the settings being configured.
protected ToolBarItem Container { get; }
Methods
Specifies the buttons of ButtonGroup.
public ToolBarItemBuilder Buttons(Action<ToolBarItemButtonFactory> configurator)
The ToolBarItemButtonFactory for the buttons setting.
Returns:Returns the current instance of ToolBarItemBuilder .
Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.
public ToolBarItemBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.
public ToolBarItemBuilder Click(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies whether the control is initially enabled or disabled. Default value is "true".
public ToolBarItemBuilder Enable(bool value)
The value for Enable
Returns:Returns the current ToolBarItemBuilder instance.
Assigns the button to a group. Applicable only for buttons with togglable: true.
public ToolBarItemBuilder Group(string value)
The value for Group
Returns:Returns the current ToolBarItemBuilder instance.
Determines if a button is visible or hidden. By default buttons are visible.
Determines if a button is visible or hidden. By default buttons are visible.
public ToolBarItemBuilder Hidden(bool value)
The value for Hidden
Returns:Returns the current ToolBarItemBuilder instance.
public ToolBarItemBuilder HtmlAttributes(IDictionary<string, object> value)
Specifies the HTML attributes of a ToolBar button.
public ToolBarItemBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:Returns the current ToolBarItemBuilder instance.
Sets icon for the item. 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 ToolBarItemBuilder Icon(Action<ToolBarItemIconSettingsBuilder> configurator)
The ToolBarItemIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ToolBarItemBuilder .
Sets icon for the item. 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 ToolBarItemBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ToolBarItemBuilder .
Specifies the ID of the button.
public ToolBarItemBuilder Id(string value)
The value for Id
Returns:Returns the current ToolBarItemBuilder instance.
If set, the ToolBar will render an image with the specified URL in the button.
public ToolBarItemBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the menu buttons of a SplitButton or a DropDownButton.
public ToolBarItemBuilder MenuButtons(Action<ToolBarItemMenuButtonFactory> configurator)
The ToolBarItemMenuButtonFactory for the menubuttons setting.
Returns:Returns the current instance of ToolBarItemBuilder .
Specifies how the button behaves when the ToolBar is resized.
public ToolBarItemBuilder Overflow(ShowInOverflowPopup value)
The value for Overflow
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplate(string value)
The value for OverflowTemplate
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the overflowtemplate.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateHandler(string templateHandler)
The handler that returs the template for OverflowTemplate
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateId(string templateId)
The ID of the template element for OverflowTemplate
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateView(IHtmlContent templateView)
The view that contains the template for OverflowTemplate
Returns:Returns the current ToolBarItemBuilder instance.
Specifies whether the button is primary. Primary buttons receive different styling.
Specifies whether the button is primary. Primary buttons receive different styling.
public ToolBarItemBuilder Primary(bool value)
The value for Primary
Returns:Returns the current ToolBarItemBuilder instance.
Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.
Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.
public ToolBarItemBuilder Selected(bool value)
The value for Selected
Returns:Returns the current ToolBarItemBuilder instance.
Specifies where the icon will be displayed.
public ToolBarItemBuilder ShowIcon(ShowIn value)
The value for ShowIcon
Returns:Returns the current ToolBarItemBuilder instance.
Specifies where the text will be displayed.
public ToolBarItemBuilder ShowText(ShowIn value)
The value for ShowText
Returns:Returns the current ToolBarItemBuilder instance.
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public ToolBarItemBuilder SpriteCssClass(string value)
The value for SpriteCssClass
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder Template(string value)
The value for Template
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current ToolBarItemBuilder instance.
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current ToolBarItemBuilder instance.
Sets the text of the button.
public ToolBarItemBuilder Text(string value)
The value for Text
Returns:Returns the current ToolBarItemBuilder instance.
Specifies if the button is togglable, e.g. has a selected and unselected state.
Specifies if the button is togglable, e.g. has a selected and unselected state.
public ToolBarItemBuilder Togglable(bool value)
The value for Togglable
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
public ToolBarItemBuilder Toggle(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
public ToolBarItemBuilder Toggle(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the type of the item.
public ToolBarItemBuilder Type(CommandType value)
The value for Type
Returns:Returns the current ToolBarItemBuilder instance.
Specifies the url to navigate to.
public ToolBarItemBuilder Url(string value)
The value for Url
Returns:Returns the current ToolBarItemBuilder instance.