ChainOfThought

Example

Razor
<kendo-chainofthought>
    <thought-template></thought-template>
    <thoughts></thoughts>
</kendo-chainofthought>

ChildTags

Tag NameDetails
thought-templateTemplateTagHelper
thoughtsChainOfThoughtThoughtsTagHelper

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
completedBooleanMarks the step as completed, applying the k-agent-completed CSS class to the element.
expandableBooleanEnables toggling the visibility of the thoughts body by clicking the header or using the keyboard.
expandedBooleanControls whether the thoughts body is visible when the widget initializes.
labelStringThe primary text label displayed in the step header.
lines-addedDoubleThe number of lines added, displayed as a green delta badge in the step header.
lines-removedDoubleThe number of lines removed, displayed as a red delta badge in the step header.
on-expanded-changeStringThe name of the JavaScript function that will handle the expandedChange event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
secondary-labelStringA secondary text label displayed after the separator in the step header.
svg-iconStringThe name of the SVG icon displayed in the step header.
thought-template-handlerStringA function used to render each thought item. Receives each item from the thoughts array as the first argument and must return an HTML string. This option expects the name of a JavaScript function that will be called to return the template.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support