Kendo.Mvc.UI.Fluent.ToolBarItemBuilder

Defines the fluent API for configuring ToolBarItem

Methods

HtmlAttributes(System.Collections.Generic.IDictionary<System.String,System.Object>)

Specifies the HTML attributes of a ToolBar button.

Parameters

value System.Collections.Generic.IDictionary<System.String,System.Object>

The value for HtmlAttributes

HtmlAttributes(System.Object)

Specifies the HTML attributes of a ToolBar button.

Parameters

value System.Object

The value for HtmlAttributes

Buttons(System.Action<Kendo.Mvc.UI.Fluent.ToolBarItemButtonFactory>)

Specifies the buttons of ButtonGroup.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ToolBarItemButtonFactory>

The configurator for the buttons setting.

Click(System.String)

Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.

Parameters

handler System.String

The name of the JavaScript function that will be evaluated.

Click(System.Func<System.Object,System.Object>)

Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.

Parameters

handler System.Func<System.Object,System.Object>

The handler code wrapped in a text tag.

Enable(System.Boolean)

Specifies whether the control is initially enabled or disabled. Default value is "true".

Parameters

value System.Boolean

The value for Enable

Group(System.String)

Assigns the button to a group. Applicable only for buttons with togglable: true.

Parameters

value System.String

The value for Group

Hidden(System.Boolean)

Determines if a button is visible or hidden. By default buttons are visible.

Parameters

value System.Boolean

The value for Hidden

Hidden

Determines if a button is visible or hidden. By default buttons are visible.

Icon(System.String)

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.

Parameters

value System.String

The value for Icon

Id(System.String)

Specifies the ID of the button.

Parameters

value System.String

The value for Id

ImageUrl(System.String)

If set, the ToolBar will render an image with the specified URL in the button.

Parameters

value System.String

The value for ImageUrl

MenuButtons(System.Action<Kendo.Mvc.UI.Fluent.ToolBarItemMenuButtonFactory>)

Specifies the menu buttons of a SplitButton.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ToolBarItemMenuButtonFactory>

The configurator for the menubuttons setting.

OverflowTemplate(System.String)

Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.

Parameters

value System.String

The value for OverflowTemplate

OverflowTemplateId(System.String)

Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.

Parameters

templateId System.String

The ID of the template element for OverflowTemplate

Primary(System.Boolean)

Specifies whether the button is primary. Primary buttons receive different styling.

Parameters

value System.Boolean

The value for Primary

Primary

Specifies whether the button is primary. Primary buttons receive different styling.

Selected(System.Boolean)

Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.

Parameters

value System.Boolean

The value for Selected

Selected

Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.

SpriteCssClass(System.String)

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

Parameters

value System.String

The value for SpriteCssClass

Template(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

value System.String

The value for Template

TemplateId(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

Parameters

templateId System.String

The ID of the template element for Template

Text(System.String)

Sets the text of the button.

Parameters

value System.String

The value for Text

Togglable(System.Boolean)

Specifies if the button is togglable, e.g. has a selected and unselected state.

Parameters

value System.Boolean

The value for Togglable

Togglable

Specifies if the button is togglable, e.g. has a selected and unselected state.

Toggle(System.String)

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

Parameters

handler System.String

The name of the JavaScript function that will be evaluated.

Toggle(System.Func<System.Object,System.Object>)

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

Parameters

handler System.Func<System.Object,System.Object>

The handler code wrapped in a text tag.

Url(System.String)

Specifies the url to navigate to.

Parameters

value System.String

The value for Url

Type(Kendo.Mvc.UI.CommandType)

Specifies the type of the item.

Parameters

value Kendo.Mvc.UI.CommandType

The value for Type

ShowText(Kendo.Mvc.UI.ShowIn)

Specifies where the text will be displayed.

Parameters

value Kendo.Mvc.UI.ShowIn

The value for ShowText

ShowIcon(Kendo.Mvc.UI.ShowIn)

Specifies where the icon will be displayed.

Parameters

value Kendo.Mvc.UI.ShowIn

The value for ShowIcon

Overflow(Kendo.Mvc.UI.ShowInOverflowPopup)

Specifies how the button behaves when the ToolBar is resized.

Parameters

value Kendo.Mvc.UI.ShowInOverflowPopup

The value for Overflow