Defines the fluent API for configuring the Kendo UI ChainOfThought
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChainOfThoughtBuilder : WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>ChainOfThoughtBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChainOfThoughtBuilder class.
Methods
Marks the step as completed, applying the k-agent-completed CSS class to the element.
public ChainOfThoughtBuilder Completed()
Returns the current ChainOfThoughtBuilder instance.
Marks the step as completed, applying the k-agent-completed CSS class to the element.
public ChainOfThoughtBuilder Completed(bool value)
The value for Completed
Returns:Returns the current ChainOfThoughtBuilder instance.
Configures the client-side events.
public ChainOfThoughtBuilder Events(Action<ChainOfThoughtEventBuilder> configurator)
The client events action.
Returns:Returns the current ChainOfThoughtBuilder instance.
Enables toggling the visibility of the thoughts body by clicking the header or using the keyboard.
public ChainOfThoughtBuilder Expandable()
Returns the current ChainOfThoughtBuilder instance.
Enables toggling the visibility of the thoughts body by clicking the header or using the keyboard.
public ChainOfThoughtBuilder Expandable(bool value)
The value for Expandable
Returns:Returns the current ChainOfThoughtBuilder instance.
Controls whether the thoughts body is visible when the widget initializes.
public ChainOfThoughtBuilder Expanded()
Returns the current ChainOfThoughtBuilder instance.
Controls whether the thoughts body is visible when the widget initializes.
public ChainOfThoughtBuilder Expanded(bool value)
The value for Expanded
Returns:Returns the current ChainOfThoughtBuilder instance.
The primary text label displayed in the step header.
public ChainOfThoughtBuilder Label(string value)
The value for Label
Returns:Returns the current ChainOfThoughtBuilder instance.
The number of lines added, displayed as a green delta badge in the step header.
public ChainOfThoughtBuilder LinesAdded(double value)
The value for LinesAdded
Returns:Returns the current ChainOfThoughtBuilder instance.
The number of lines removed, displayed as a red delta badge in the step header.
public ChainOfThoughtBuilder LinesRemoved(double value)
The value for LinesRemoved
Returns:Returns the current ChainOfThoughtBuilder instance.
A secondary text label displayed after the separator in the step header.
public ChainOfThoughtBuilder SecondaryLabel(string value)
The value for SecondaryLabel
Returns:Returns the current ChainOfThoughtBuilder instance.
The name of the SVG icon displayed in the step header.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ChainOfThoughtBuilder SvgIcon(Action<ChainOfThoughtSvgIconSettingsBuilder> configurator)
The ChainOfThoughtSvgIconSettingsBuilder for the svgicon setting.
Returns:Returns the current instance of ChainOfThoughtBuilder .
The name of the SVG icon displayed in the step header.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ChainOfThoughtBuilder SvgIcon(string svgIcon)
The svgicon.
Returns:Returns the current instance of ChainOfThoughtBuilder .
An array of thought objects rendered inside the step body. Each item can include label, secondaryLabel, svgIcon, linesAdded, linesRemoved, time, content, encoded, and completed properties.
public ChainOfThoughtBuilder Thoughts(Action<ChainOfThoughtThoughtFactory> configurator)
The ChainOfThoughtThoughtFactory for the thoughts setting.
Returns:Returns the current instance of ChainOfThoughtBuilder .
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.
public ChainOfThoughtBuilder ThoughtTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the thoughttemplate.
Returns:Returns the current ChainOfThoughtBuilder instance.
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.
public ChainOfThoughtBuilder ThoughtTemplateHandler(string templateHandler)
The handler that returs the template for ThoughtTemplate
Returns:Returns the current ChainOfThoughtBuilder instance.