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

Defines the fluent API for configuring the Kendo ChainOfThought for ASP.NET MVC.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

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

Inheritance: objectWidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>ChainOfThoughtBuilder

Implements: IHtmlString

Inherited Members WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToComponent()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Name(string)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Deferred(bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ModelMetadata(ModelMetadata)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.HtmlAttributes(object)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.AsModule(bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Render()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToHtmlString()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToClientTemplate()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.ToString()WidgetBuilderBase<ChainOfThought, ChainOfThoughtBuilder>.Componentobject.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 ChainOfThought class.

C#
public ChainOfThoughtBuilder(ChainOfThought component)
Parameters:componentChainOfThought

The component.

Methods

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 that configures the completed.

Returns:

ChainOfThoughtBuilder

Configures the client-side events.

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

The client events action.

Returns:

ChainOfThoughtBuilder

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(bool value)
Parameters:valuebool

The value that configures the expandable.

Returns:

ChainOfThoughtBuilder

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

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

The value that configures the expanded.

Returns:

ChainOfThoughtBuilder

The primary text label displayed in the step header.

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

The value that configures the label.

Returns:

ChainOfThoughtBuilder

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 that configures the linesadded.

Returns:

ChainOfThoughtBuilder

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 that configures the linesremoved.

Returns:

ChainOfThoughtBuilder

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

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

The value that configures the secondarylabel.

Returns:

ChainOfThoughtBuilder

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

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

The value that configures the svgicon.

Returns:

ChainOfThoughtBuilder

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 ChainOfThoughtBuilder Thoughts(Action<ChainOfThoughtThoughtFactory> configurator)
Parameters:configuratorAction<ChainOfThoughtThoughtFactory>

The action that configures the thoughts.

Returns:

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

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 value)
Parameters:valuestring

The value that configures the thoughttemplate.

Returns:

ChainOfThoughtBuilder