toggle

Toggles the expanded state of the step body. If no argument is provided, the current state is reversed.

Parameters

expand Boolean

If true, the step body is shown. If false, the step body is hidden. If omitted, the state is reversed.

Example - toggle the step

<div id="chain"></div>
<script>
$("#chain").kendoChainOfThought({
    label: "Thinking",
    expandable: true,
    thoughts: [{ label: "Step 1" }]
});
var chain = $("#chain").data("kendoChainOfThought");
chain.toggle(true);
</script>
In this article
toggle
Not finding the help you need?
Contact Support