activeView

Changes the active view. If no argument is provided, the method returns the index of the active view.

Example

<div id="aiprompt"></div>
<script>
var aiprompt = $("#aiprompt").kendoAIPrompt().data("kendoAIPrompt");
aiprompt.activeView(1);
setTimeout(() => {
    aiprompt.activeView("prompt")
}, 1000);
</script>

Parameters

view Number|String

The index of the active view or the name of the view to show. If no argument is provided, the method returns the index of the active view.

In this article