Kendo UI ChainOfThought TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-chainofthought")]
[RestrictChildren("thoughts", new string[] { "thought-template", "svg-icon" })]
public class ChainOfThoughtTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseChainOfThoughtTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the ChainOfThoughtTagHelper class.
public ChainOfThoughtTagHelper(IKendoHtmlGenerator generator)
Properties
Marks the step as completed, applying the k-agent-completed CSS class to the element.
public bool? Completed { get; set; }
Enables toggling the visibility of the thoughts body by clicking the header or using the keyboard.
public bool? Expandable { get; set; }
Controls whether the thoughts body is visible when the widget initializes.
public bool? Expanded { get; set; }
The primary text label displayed in the step header.
public string Label { get; set; }
The number of lines added, displayed as a green delta badge in the step header.
public double? LinesAdded { get; set; }
The number of lines removed, displayed as a red delta badge in the step header.
public double? LinesRemoved { get; set; }
The name of the JavaScript function that will handle the expandedChange event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnExpandedChange { get; set; }
A secondary text label displayed after the separator in the step header.
public string SecondaryLabel { get; set; }
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.
[HtmlAttributeName("svg-icon")]
public string SvgIcon { get; set; }
Configures the templates for the ChainOfThought.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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. This option expects the name of a JavaScript function that will be called to return the template.
public string ThoughtTemplateHandler { get; set; }
Methods
Gets the generated initialization script.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Serializes the defined templates.
protected override Dictionary<string, object> SerializeTemplates()
Overrides:
Writes content to the output.
protected override void WriteHtml(TagHelperOutput output)
Overrides: