ToolBarItemBuilder
Defines the fluent API for configuring the ToolBarItem settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolBarItemBuilder
Inheritance: objectToolBarItemBuilder
Inherited Members
Constructors
Methods
Specifies the buttons of ButtonGroup.
public ToolBarItemBuilder Buttons(Action<ToolBarItemButtonFactory> configurator)
The action that configures the buttons.
Returns:Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.
public ToolBarItemBuilder Click(string handler)
The value that configures the click action.
Returns:Specifies whether the control is initially enabled or disabled. Default value is "true".
public ToolBarItemBuilder Enable(bool value)
The value that configures the enable.
Returns:Assigns the button to a group. Applicable only for buttons with togglable: true.
public ToolBarItemBuilder Group(string value)
The value that configures the group.
Returns:Determines if a button is visible or hidden. By default buttons are visible.
public ToolBarItemBuilder Hidden(bool value)
The value that configures the hidden.
Returns:public ToolBarItemBuilder HtmlAttributes(IDictionary<string, object> value)
Specifies the HTML attributes of a ToolBar button.
public ToolBarItemBuilder HtmlAttributes(object value)
The value that configures the htmlattributes.
Returns:Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.
public ToolBarItemBuilder Icon(string value)
The value that configures the icon.
Returns:Specifies the ID of the button.
public ToolBarItemBuilder Id(string value)
The value that configures the id.
Returns:If set, the ToolBar will render an image with the specified URL in the button.
public ToolBarItemBuilder ImageUrl(string value)
The value that configures the imageurl.
Returns:Specifies the menu buttons of a SplitButton or a DropDownButton.
public ToolBarItemBuilder MenuButtons(Action<ToolBarItemMenuButtonFactory> configurator)
The action that configures the menubuttons.
Returns:Specifies how the button behaves when the ToolBar is resized.
public ToolBarItemBuilder Overflow(ShowInOverflowPopup value)
The value that configures the overflow.
Returns: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 that configures the overflowtemplate.
Returns: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:Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateHandler(string value)
The value that configures the overflowtemplate.
Returns:Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateId(string value)
The value that configures the overflowtemplate.
Returns:Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.
public ToolBarItemBuilder OverflowTemplateView(MvcHtmlString value)
The value that configures the overflowtemplate.
Returns:Specifies whether the button is primary. Primary buttons receive different styling.
public ToolBarItemBuilder Primary(bool value)
The value that configures the primary.
Returns:Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.
public ToolBarItemBuilder Selected(bool value)
The value that configures the selected.
Returns:Specifies where the icon will be displayed.
public ToolBarItemBuilder ShowIcon(ShowIn value)
The value that configures the showicon.
Returns:Specifies where the text will be displayed.
public ToolBarItemBuilder ShowText(ShowIn value)
The value that configures the showtext.
Returns:Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public ToolBarItemBuilder SpriteCssClass(string value)
The value that configures the spritecssclass.
Returns: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 that configures the template.
Returns: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:Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateHandler(string value)
The value that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateId(string value)
The value that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
public ToolBarItemBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:Sets the text of the button.
public ToolBarItemBuilder Text(string value)
The value that configures the text.
Returns:Specifies if the button is togglable, e.g. has a selected and unselected state.
public ToolBarItemBuilder Togglable(bool value)
The value that configures the togglable.
Returns:Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
public ToolBarItemBuilder Toggle(string handler)
The value that configures the toggle action.
Returns:Specifies the type of the item.
public ToolBarItemBuilder Type(CommandType value)
The value that configures the type.
Returns:Specifies the url to navigate to.
public ToolBarItemBuilder Url(string value)
The value that configures the url.
Returns: