New to Telerik UI for Blazor? Start a free 30-day trial

Groups an ordered sequence of internal thought rows under one collapsible summary.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

C#
public class TelerikChainOfThought<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikChainOfThought<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikChainOfThought()

Properties

Indicates whether the chain has finished processing. Adds the completed CSS state when true.

C#
[Parameter]
public bool Completed { get; set; }

Specifies which field of the model indicates whether the thought is completed. Default field name is "Completed".

C#
[Parameter]
public string CompletedField { get; set; }

Specifies which field of the model is used as the content (body text) of the thought. Default field name is "Content".

C#
[Parameter]
public string ContentField { get; set; }

Data

IList<TItem>

The ordered collection of thought items rendered inside the body.

C#
[Parameter]
public IList<TItem> Data { get; set; }

Controls whether the head exposes disclosure (expand/collapse) behavior. An empty Data collection overrides this and makes the chain non-expandable.

C#
[Parameter]
public bool Expandable { get; set; }

Controls whether the thought rows are visible. Supports two-way binding via ExpandedChanged.

C#
[Parameter]
public bool Expanded { get; set; }

Fires when the user toggles the chain body. Use with Expanded for two-way binding.

C#
[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }

The group icon. Defaults to the sparkles icon. You can use either a predefined Telerik Icon or a custom one.

C#
[Parameter]
public object Icon { get; set; }

Specifies which field of the model is used as the SVG icon of the thought. Default field name is "SvgIcon".

C#
[Parameter]
public string IconField { get; set; }

Specifies the SVG variant for the group Icon. When the value is null, empty, or unsupported, the icon's default SVG content is rendered. Font and custom CSS icons are unaffected.

C#
[Parameter]
public string IconVariant { get; set; }

Specifies which model field provides the SVG variant for each thought icon identified by IconField. The default field name is "IconVariant". Null, empty, or unsupported item values use the icon's default SVG content, and font or custom CSS icons are unaffected.

C#
[Parameter]
public string IconVariantField { get; set; }

Customizes the rendering of each thought row. When not set, the default rendering is used.

C#
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }

The group summary label.

C#
[Parameter]
public string Label { get; set; }

Specifies which field of the model is used as the label of the thought. Default field name is "Label".

C#
[Parameter]
public string LabelField { get; set; }

Number of lines added at the group level.

C#
[Parameter]
public int? LinesAdded { get; set; }

Specifies which field of the model holds the number of lines added. Default field name is "LinesAdded".

C#
[Parameter]
public string LinesAddedField { get; set; }

Number of lines removed at the group level.

C#
[Parameter]
public int? LinesRemoved { get; set; }

Specifies which field of the model holds the number of lines removed. Default field name is "LinesRemoved".

C#
[Parameter]
public string LinesRemovedField { get; set; }

Supporting context shown next to the group label.

C#
[Parameter]
public string SecondaryLabel { get; set; }

Specifies which field of the model is used as the secondary label of the thought. Default field name is "SecondaryLabel".

C#
[Parameter]
public string SecondaryLabelField { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)