setThoughts
Replaces the current thoughts array and re-renders the step body.
Parameters
thoughts Array
The new array of thought objects to render.
Example - update the thoughts
<div id="chain"></div>
<script>
$("#chain").kendoChainOfThought({
label: "Thinking",
expanded: true,
thoughts: [{ label: "Initial thought" }]
});
var chain = $("#chain").data("kendoChainOfThought");
chain.setThoughts([
{ label: "Updated thought one" },
{ label: "Updated thought two" }
]);
</script>