ChainOfThought
Example
Razor
<kendo-chainofthought>
<thought-template></thought-template>
<thoughts></thoughts>
</kendo-chainofthought>
ChildTags
| Tag Name | Details |
|---|---|
| thought-template | TemplateTagHelper |
| thoughts | ChainOfThoughtThoughtsTagHelper |
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | String | Sets the name of the component. |
| completed | Boolean | Marks the step as completed, applying the k-agent-completed CSS class to the element. |
| expandable | Boolean | Enables toggling the visibility of the thoughts body by clicking the header or using the keyboard. |
| expanded | Boolean | Controls whether the thoughts body is visible when the widget initializes. |
| label | String | The primary text label displayed in the step header. |
| lines-added | Double | The number of lines added, displayed as a green delta badge in the step header. |
| lines-removed | Double | The number of lines removed, displayed as a red delta badge in the step header. |
| on-expanded-change | String | The 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-attributes | IDictionary<String,Object> | Sets the attributes that will be added to the script tag of the component's initialization script. |
| secondary-label | String | A secondary text label displayed after the separator in the step header. |
| svg-icon | String | The name of the SVG icon displayed in the step header. |
| thought-template-handler | String | A 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-template | Boolean | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute. |
| deferred | Boolean | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method. |
| as-module | Boolean | Specifies whether the initialization script of the component will be rendered as a JavaScript module. |