destroy

Prepares the ChainOfThought 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 ChainOfThought element from DOM.

Example - destroy the widget

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