Kendo.Mvc.UI.Fluent.ChatToolbarButtonsFactory

Defines the fluent API for adding items to the toolbar of Kendo Chat for ASP.NET MVC

Methods

Add(System.String)

Adds a button by defining only a string.

Parameters

name System.String

The button's name.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Buttons(buttons => buttons
            .Add("button")
            );
        })

Add

Adds a button by defining an action builder for 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"))
            );
        })