ReasoningTagHelper
Kendo UI Reasoning TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-reasoning")]
[RestrictChildren("content-template", new string[] { "svg-icon" })]
public class ReasoningTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseReasoningTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the ReasoningTagHelper class.
Properties
Marks the reasoning step as completed, applying the k-agent-completed CSS class to the element.
public bool? Completed { get; set; }
Plain text content rendered inside the step body.
public string Content { get; set; }
A function used to render the content body. Called with an empty object 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 ContentTemplateHandler { get; set; }
Enables toggling the visibility of the content body by clicking the header or using the keyboard.
public bool? Expandable { get; set; }
Controls whether the content 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 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 Reasoning.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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: