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:
public class TelerikChainOfThought<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikChainOfThought<TItem>
Implements:
Inherited Members
Constructors
public TelerikChainOfThought()
Properties
Indicates whether the chain has finished processing. Adds the completed CSS state when true.
[Parameter]
public bool Completed { get; set; }
Specifies which field of the model indicates whether the thought is completed. Default field name is "Completed".
[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".
[Parameter]
public string ContentField { get; set; }
The ordered collection of thought items rendered inside the body.
[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.
[Parameter]
public bool Expandable { get; set; }
Controls whether the thought rows are visible. Supports two-way binding via ExpandedChanged.
[Parameter]
public bool Expanded { get; set; }
Fires when the user toggles the chain body. Use with Expanded for two-way binding.
[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.
[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".
[Parameter]
public string IconField { get; set; }
ItemTemplate
RenderFragment<TItem>
Customizes the rendering of each thought row. When not set, the default rendering is used.
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Specifies which field of the model is used as the label of the thought. Default field name is "Label".
[Parameter]
public string LabelField { get; set; }
Number of lines added at the group level.
[Parameter]
public int? LinesAdded { get; set; }
Specifies which field of the model holds the number of lines added. Default field name is "LinesAdded".
[Parameter]
public string LinesAddedField { get; set; }
Number of lines removed at the group level.
[Parameter]
public int? LinesRemoved { get; set; }
Specifies which field of the model holds the number of lines removed. Default field name is "LinesRemoved".
[Parameter]
public string LinesRemovedField { get; set; }
Supporting context shown next to the group label.
[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".
[Parameter]
public string SecondaryLabelField { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides: