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

Defines the fluent API for configuring the Kendo UI Reasoning

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ReasoningBuilder : WidgetBuilderBase<Reasoning, ReasoningBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Reasoning, ReasoningBuilder>ReasoningBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Reasoning, ReasoningBuilder>.ToComponent()WidgetBuilderBase<Reasoning, ReasoningBuilder>.Expression(string)WidgetBuilderBase<Reasoning, ReasoningBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Reasoning, ReasoningBuilder>.Name(string)WidgetBuilderBase<Reasoning, ReasoningBuilder>.Deferred(bool)WidgetBuilderBase<Reasoning, ReasoningBuilder>.HtmlAttributes(object)WidgetBuilderBase<Reasoning, ReasoningBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Reasoning, ReasoningBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Reasoning, ReasoningBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Reasoning, ReasoningBuilder>.Render()WidgetBuilderBase<Reasoning, ReasoningBuilder>.ToHtmlString()WidgetBuilderBase<Reasoning, ReasoningBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Reasoning, ReasoningBuilder>.ToClientTemplate()WidgetBuilderBase<Reasoning, ReasoningBuilder>.AsModule(bool)WidgetBuilderBase<Reasoning, ReasoningBuilder>.ComponentWidgetBuilderBase<Reasoning, ReasoningBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ReasoningBuilder class.

C#
public ReasoningBuilder(Reasoning component)
Parameters:componentReasoning

Methods

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

C#
public ReasoningBuilder Completed()
Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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

C#
public ReasoningBuilder Completed(bool value)
Parameters:valuebool

The value for Completed

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

Plain text content rendered inside the step body.

C#
public ReasoningBuilder Content(string value)
Parameters:valuestring

The value for Content

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

A function used to render the content body. Called with an empty object and must return an HTML string.

C#
public ReasoningBuilder ContentTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the contenttemplate.

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

A function used to render the content body. Called with an empty object and must return an HTML string.

C#
public ReasoningBuilder ContentTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ContentTemplate

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

Configures the client-side events.

C#
public ReasoningBuilder Events(Action<ReasoningEventBuilder> configurator)
Parameters:configuratorAction<ReasoningEventBuilder>

The client events action.

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

Example:
C#
@(Html.Kendo().Reasoning()
.Name("Reasoning")
.Events(events =&gt; events
.ExpandedChange("onExpandedChange")
)
)

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

C#
public ReasoningBuilder Expandable()
Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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

C#
public ReasoningBuilder Expandable(bool value)
Parameters:valuebool

The value for Expandable

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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

C#
public ReasoningBuilder Expanded()
Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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

C#
public ReasoningBuilder Expanded(bool value)
Parameters:valuebool

The value for Expanded

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

The primary text label displayed in the step header.

C#
public ReasoningBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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

C#
public ReasoningBuilder SecondaryLabel(string value)
Parameters:valuestring

The value for SecondaryLabel

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.

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#
public ReasoningBuilder SvgIcon(Action<ReasoningSvgIconSettingsBuilder> configurator)
Parameters:configuratorAction<ReasoningSvgIconSettingsBuilder>

The ReasoningSvgIconSettingsBuilder for the svgicon setting.

Returns:

ReasoningBuilder

Returns the current instance of ReasoningBuilder .

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#
public ReasoningBuilder SvgIcon(string svgIcon)
Parameters:svgIconstring

The svgicon.

Returns:

ReasoningBuilder

Returns the current instance of ReasoningBuilder .

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

C#
public ReasoningBuilder Time(string value)
Parameters:valuestring

The value for Time

Returns:

ReasoningBuilder

Returns the current ReasoningBuilder instance.