renderSuggestedActions

Renders an array of suggested actions inside the chat.

Parameters

suggestedActions Object

An array of suggestedAction objects.

suggestedActions.title String

The text which is rendered inside the suggested action bubble.

suggestedActions.value String

The value of the suggested action. This is the value used as input when a suggested action is clicked.

Example

<div id="chat"></div>
<script>
    $("#chat").kendoChat();

    var chat = $("#chat").data("kendoChat");

    chat.renderSuggestedActions([{
        title: "Option 1",
        value: "Value 1"
    }, {
        title: "Option 2",
        value: "Value 2"
    }]);
</script>
In this article
Not finding the help you need? Improve this article