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 - the value that is used as an 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