Kendo.Mvc.UI.Fluent.ChatToolbarSettingsBuilder

Defines the fluent API for configuring the ChatUserSettings settings.

Methods

Animation(System.Boolean)

Configures the animation effects of the Kendo UI Chat toolbar.

Parameters

enable System.Boolean

Whether the component animation is enabled.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Animation(false);
    })

Animation(System.Action<Kendo.Mvc.UI.Fluent.ExpandableAnimationBuilder>)

Configures the toolbar's toggle animation effects.

Parameters

animationAction System.Action<Kendo.Mvc.UI.Fluent.ExpandableAnimationBuilder>

The action that configures the animation.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Animation(animation => animation.Expand(config => config.Fade(FadeDirection.In)))
    })

Scrollable(System.Boolean)

Enables/disables the scrollable feature of the Chat toolbar.

Parameters

enable System.Boolean

Whether the scrollable is enabled.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Scrollable(false);
    })

Toggleable(System.Boolean)

Enables/disables the toggleable feature of the Chat toolbar.

Parameters

enable System.Boolean

Whether the toggleable is enabled.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Toggleable(false);
    })

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

Configures the Chat's toolbar buttons.

Parameters

action System.Action<Kendo.Mvc.UI.Fluent.ChatToolbarButtonsFactory>

The buttons builder.

Example (ASPX)

<%= Html.Kendo().Chat()
    .Name("Chat")
    .Toolbar(toolbar => {
        toolbar.Buttons(buttons => buttons
            .Add("button")
            .Add(buttons => button.Name("button2").IconClass("k-icon k-i-gear"))
            );
        })