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

Kendo UI Reasoning TagHelper

Definition

Constructors

Initializes a new instance of the ReasoningTagHelper class.

C#
public ReasoningTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Marks the reasoning step as completed, applying the k-agent-completed CSS class to the element.

C#
public bool? Completed { get; set; }

Plain text content rendered inside the step body.

C#
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.

C#
public string ContentTemplateHandler { get; set; }

Enables toggling the visibility of the content body by clicking the header or using the keyboard.

C#
public bool? Expandable { get; set; }

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

C#
public bool? Expanded { get; set; }

The primary text label displayed in the step header.

C#
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.

C#
public string OnExpandedChange { get; set; }

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

C#
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.

C#
[HtmlAttributeName("svg-icon")]
public string SvgIcon { get; set; }

Configures the templates for the Reasoning.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

A time or duration string displayed after a separator in the step header.

C#
public string Time { get; set; }

Methods

Gets the generated initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Serializes the defined templates.

C#
protected override Dictionary<string, object> SerializeTemplates()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeTemplates()

Writes content to the output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)