New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ChatToolbarButtonFactory

Methods

Name(System.String)

Defines the name of the button.

Parameters

name - System.String

The name of the button.

Example


            @( 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


            @( 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


            @( 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


            @( Html.Kendo().Chat()
                        .Name("Chat")
                        .Toolbar(toolbar => {
                              toolbar.Buttons(buttons => buttons
                                  .Add(buttons => button.Name("button2").Attr(new { data_value = "value" }))
                              );
                         })
            )             

In this article
Not finding the help you need?