Kendo.Mvc.UI.Fluent.ChatToolbarButtonFactory
Defines the fluent API for adding items to the toolbar of Kendo Chat for ASP.NET MVC
Methods
Name(System.String)
Defines the name of the button.
Parameters
name System.String
The name of the button.
Example (ASPX)
<%= Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar => {
toolbar.Buttons(buttons => buttons
.Add(buttons => button.Name("button2").IconClass("k-icon k-i-gear"))
);
})
Text(System.String)
Defines the text of the button.
Parameters
text System.String
The text of the button.
Example (ASPX)
<%= Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar => {
toolbar.Buttons(buttons => buttons
.Add(buttons => button.Name("button2").Text("Button"))
);
})
IconClass(System.String)
Defines the iconClass of the button's inner span element.
Parameters
iconClass System.String
The iconClass of the button.
Example (ASPX)
<%= Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar => {
toolbar.Buttons(buttons => buttons
.Add(buttons => button.Name("button2").IconClass("k-icon k-i-gear"))
);
})
Attr(System.Object)
Defines the DOM attribute for the button element.
Parameters
attr System.Object
The attributes of the button.
Example (ASPX)
<%= Html.Kendo().Chat()
.Name("Chat")
.Toolbar(toolbar => {
toolbar.Buttons(buttons => buttons
.Add(buttons => button.Name("button2").Attr(new { data_value = "value" }))
);
})