New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

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; }

The name of the SVG icon displayed in the step header.

C#
public string SvgIcon { get; set; }

An array of thought objects rendered inside the step body. Each item can include label, secondaryLabel, svgIcon, linesAdded, linesRemoved, time, children, and completed properties.

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

The handler for the ThoughtTemplate

C#
public string ThoughtTemplateHandler { get; set; }

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)