New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI ChainOfThought component

Definition

Constructors

Initializes a new instance of the ChainOfThought class.

C#
public ChainOfThought(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Marks the step as completed, applying the k-agent-completed CSS class to the element.

C#
public bool? Completed { get; set; }

Enables toggling the visibility of the thoughts body by clicking the header or using the keyboard.

C#
public bool? Expandable { get; set; }

Controls whether the thoughts body is visible when the widget initializes.

C#
public bool? Expanded { get; set; }

The primary text label displayed in the step header.

C#
public string Label { get; set; }

The number of lines added, displayed as a green delta badge in the step header.

C#
public double? LinesAdded { get; set; }

The number of lines removed, displayed as a red delta badge in the step header.

C#
public double? LinesRemoved { get; set; }

A secondary text label displayed after the separator in the step header.

C#
public string SecondaryLabel { get; set; }
C#
public string SvgIcon { get; set; }

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.

C#
public ChainOfThoughtSvgIconSettings SvgIconSettings { get; }

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.

C#
public List<ChainOfThoughtThought> Thoughts { get; set; }

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.

C#
public string ThoughtTemplateHandler { get; set; }

Methods

Serialize the current instance to Dictionary

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)