Edit this page

Chat TagHelper Overview

The Chat tag helper is a server-side wrapper for the Kendo UI Chat for jQuery and allows you to configure the widget in ASP.NET Core applications.

The Chat widget allows the user to participate in chat sessions with other users or with chat bots. The widget provides support for default cards and actions, and enables the configuration of custom templates and custom components.

Basic Usage

The following example demonstrates how to define the Chat by using the Chat tag helper.

Example
<kendo-chat name="chat"></kendo-chat>

Configuration

The following example demonstrates the configuration options that are available for the Chat tag helper.

Example
    <!-- Initializing the Chat and attaching the event handlers -->
    <kendo-chat name="chat"
                on-post="onPost"
                on-action-click="onActionClick"
                on-send-message="onSendMessage"
                on-typing-start="onTypingStart"
                on-typing-end="onTypingEnd">
        <!-- The Chat User configuration -->
        <user name="ChatBot Name"
              icon-url="https://demos.telerik.com/kendo-ui/content/chat/avatar.png" />
        <!-- Configuring the Placeholder message -->
        <messages placeholder="Type your message" />
    </kendo-chat>

See Also