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

Defines the fluent API for configuring the Kendo UI ChainOfThought

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChainOfThoughtBuilder : WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>ChainOfThoughtBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToComponent()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Expression(string)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Name(string)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Deferred(bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.HtmlAttributes(object)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Render()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToHtmlString()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToClientTemplate()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.AsModule(bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ComponentWidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChainOfThoughtBuilder class.

C#
public ChainOfThoughtBuilder(ChainOfThought component)
Parameters:componentChainOfThought

Methods

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

C#
public ChainOfThoughtBuilder Completed()
Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder Completed(bool value)
Parameters:valuebool

The value for Completed

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

Configures the client-side events.

C#
public ChainOfThoughtBuilder Events(Action<ChainOfThoughtEventBuilder> configurator)
Parameters:configuratorAction<ChainOfThoughtEventBuilder>

The client events action.

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

Example:
C#
@(Html.Kendo().ChainOfThought()
.Name("ChainOfThought")
.Events(events =&gt; events
.ExpandedChange("onExpandedChange")
)
)

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

C#
public ChainOfThoughtBuilder Expandable()
Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder Expandable(bool value)
Parameters:valuebool

The value for Expandable

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder Expanded()
Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder Expanded(bool value)
Parameters:valuebool

The value for Expanded

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

The primary text label displayed in the step header.

C#
public ChainOfThoughtBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder LinesAdded(double value)
Parameters:valuedouble

The value for LinesAdded

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder LinesRemoved(double value)
Parameters:valuedouble

The value for LinesRemoved

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.

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

C#
public ChainOfThoughtBuilder SecondaryLabel(string value)
Parameters:valuestring

The value for SecondaryLabel

Returns:

ChainOfThoughtBuilder

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.

C#
public ChainOfThoughtBuilder SvgIcon(Action<ChainOfThoughtSvgIconSettingsBuilder> configurator)
Parameters:configuratorAction<ChainOfThoughtSvgIconSettingsBuilder>

The ChainOfThoughtSvgIconSettingsBuilder for the svgicon setting.

Returns:

ChainOfThoughtBuilder

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.

C#
public ChainOfThoughtBuilder SvgIcon(string svgIcon)
Parameters:svgIconstring

The svgicon.

Returns:

ChainOfThoughtBuilder

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.

C#
public ChainOfThoughtBuilder Thoughts(Action<ChainOfThoughtThoughtFactory> configurator)
Parameters:configuratorAction<ChainOfThoughtThoughtFactory>

The ChainOfThoughtThoughtFactory for the thoughts setting.

Returns:

ChainOfThoughtBuilder

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.

C#
public ChainOfThoughtBuilder ThoughtTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the thoughttemplate.

Returns:

ChainOfThoughtBuilder

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.

C#
public ChainOfThoughtBuilder ThoughtTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ThoughtTemplate

Returns:

ChainOfThoughtBuilder

Returns the current ChainOfThoughtBuilder instance.