destroy

Prepares the ToolCall for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks.

Important: This method does not remove the ToolCall element from DOM.

Example - destroy the widget

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({ label: "run_query" });
var toolCall = $("#toolcall").data("kendoToolCall");
toolCall.destroy();
</script>
In this article
destroy
Not finding the help you need?
Contact Support