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

Defines the fluent API for configuring StepperStep

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class StepperStepBuilder

Inheritance: objectStepperStepBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

StepperStepBuilder method.

C#
public StepperStepBuilder(StepperStep container)
Parameters:containerStepperStep

Properties

Gets the settings being configured.

C#
protected StepperStep Container { get; }

Methods

Defines whether the Step is enabled or not. By default all steps are enabled.

C#
public StepperStepBuilder Enabled(bool value)
Parameters:valuebool

The value for Enabled

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Steps(s =>
{
s.Add().Label("Personal Info").Icon("user");
})
)

Defines whether the Step is in error state (is invalid). By default all steps are valid.

C#
public StepperStepBuilder Error()
Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Defines whether the Step is in error state (is invalid). By default all steps are valid.

C#
public StepperStepBuilder Error(bool value)
Parameters:valuebool

The value for Error

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Steps(s =>
{
s.Add().Label("Personal Info").Icon("user").Error(false);
})
)

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be displayed in the indicator element of that Step. For a list of available icon names, please refer to the Web Font Icons article.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 StepperStepBuilder Icon(Action<StepperStepIconSettingsBuilder> configurator)
Parameters:configuratorAction<StepperStepIconSettingsBuilder>

The StepperStepIconSettingsBuilder for the icon setting.

Returns:

StepperStepBuilder

Returns the current instance of StepperStepBuilder .

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be displayed in the indicator element of that Step. For a list of available icon names, please refer to the Web Font Icons article.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 StepperStepBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

StepperStepBuilder

Returns the current instance of StepperStepBuilder .

The template used to render the icon in the indicator of the step.The fields which can be used in the template are: label String - the label set on the step; icon String - the icon specified for this step (if any); successIcon String - the successIcon specified for this step (if any); enabled Boolean - indicates whether the step is enabled (true) or disabled (false); error Boolean - indicates whether the step has error (true) or not (false); selected Boolean - indicates whether the step is selected; previous Boolean - indicates whether the step is before the currently selected or not; index Number - a zero-based index of the current step; isFirstStep Boolean - indicates whether the step is the initial one in the Stepper; isLastStep Boolean - indicates whether the step is the last one in the Stepper; indicatorVisible Boolean - indicates whether the indicator, which holds the icon should be displayed or not or labelVisible Boolean - indicates whether the label section of the step should be displayed or not.

C#
public StepperStepBuilder IconTemplate(string value)
Parameters:valuestring

The value for IconTemplate

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

The template used to render the icon in the indicator of the step.The fields which can be used in the template are: label String - the label set on the step; icon String - the icon specified for this step (if any); successIcon String - the successIcon specified for this step (if any); enabled Boolean - indicates whether the step is enabled (true) or disabled (false); error Boolean - indicates whether the step has error (true) or not (false); selected Boolean - indicates whether the step is selected; previous Boolean - indicates whether the step is before the currently selected or not; index Number - a zero-based index of the current step; isFirstStep Boolean - indicates whether the step is the initial one in the Stepper; isLastStep Boolean - indicates whether the step is the last one in the Stepper; indicatorVisible Boolean - indicates whether the indicator, which holds the icon should be displayed or not or labelVisible Boolean - indicates whether the label section of the step should be displayed or not.

C#
public StepperStepBuilder IconTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the icontemplate.

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

The template used to render the icon in the indicator of the step.The fields which can be used in the template are: label String - the label set on the step; icon String - the icon specified for this step (if any); successIcon String - the successIcon specified for this step (if any); enabled Boolean - indicates whether the step is enabled (true) or disabled (false); error Boolean - indicates whether the step has error (true) or not (false); selected Boolean - indicates whether the step is selected; previous Boolean - indicates whether the step is before the currently selected or not; index Number - a zero-based index of the current step; isFirstStep Boolean - indicates whether the step is the initial one in the Stepper; isLastStep Boolean - indicates whether the step is the last one in the Stepper; indicatorVisible Boolean - indicates whether the indicator, which holds the icon should be displayed or not or labelVisible Boolean - indicates whether the label section of the step should be displayed or not.

C#
public StepperStepBuilder IconTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for IconTemplate

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

The template used to render the icon in the indicator of the step.The fields which can be used in the template are: label String - the label set on the step; icon String - the icon specified for this step (if any); successIcon String - the successIcon specified for this step (if any); enabled Boolean - indicates whether the step is enabled (true) or disabled (false); error Boolean - indicates whether the step has error (true) or not (false); selected Boolean - indicates whether the step is selected; previous Boolean - indicates whether the step is before the currently selected or not; index Number - a zero-based index of the current step; isFirstStep Boolean - indicates whether the step is the initial one in the Stepper; isLastStep Boolean - indicates whether the step is the last one in the Stepper; indicatorVisible Boolean - indicates whether the indicator, which holds the icon should be displayed or not or labelVisible Boolean - indicates whether the label section of the step should be displayed or not.

C#
public StepperStepBuilder IconTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for IconTemplate

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

The template used to render the icon in the indicator of the step.The fields which can be used in the template are: label String - the label set on the step; icon String - the icon specified for this step (if any); successIcon String - the successIcon specified for this step (if any); enabled Boolean - indicates whether the step is enabled (true) or disabled (false); error Boolean - indicates whether the step has error (true) or not (false); selected Boolean - indicates whether the step is selected; previous Boolean - indicates whether the step is before the currently selected or not; index Number - a zero-based index of the current step; isFirstStep Boolean - indicates whether the step is the initial one in the Stepper; isLastStep Boolean - indicates whether the step is the last one in the Stepper; indicatorVisible Boolean - indicates whether the indicator, which holds the icon should be displayed or not or labelVisible Boolean - indicates whether the label section of the step should be displayed or not.

C#
public StepperStepBuilder IconTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for IconTemplate

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Defines the label (text) of the Step.

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

The value for Label

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Steps(s =&gt;
{
s.Add().Label("Personal Info").Icon("user");
})
)

Defines whether the Step is selected.

C#
public StepperStepBuilder Selected()
Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Defines whether the Step is selected.

C#
public StepperStepBuilder Selected(bool value)
Parameters:valuebool

The value for Selected

Returns:

StepperStepBuilder

Returns the current StepperStepBuilder instance.

Example:
C#
@(Html.Kendo().Stepper()
.Name("stepper")
.Steps(s =&gt;
{
s.Add().Label("Personal Info").Icon("user").Selected(true);
})
)

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be displayed in the indicator element of that Step, when the step is a previous one and it does not have an error. For a list of available icon names, please refer to the Web Font Icons article.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 StepperStepBuilder SuccessIcon(Action<StepperStepSuccessIconSettingsBuilder> configurator)
Parameters:configuratorAction<StepperStepSuccessIconSettingsBuilder>

The StepperStepSuccessIconSettingsBuilder for the successicon setting.

Returns:

StepperStepBuilder

Returns the current instance of StepperStepBuilder .

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be displayed in the indicator element of that Step, when the step is a previous one and it does not have an error. For a list of available icon names, please refer to the Web Font Icons article.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 StepperStepBuilder SuccessIcon(string successIcon)
Parameters:successIconstring

The successicon.

Returns:

StepperStepBuilder

Returns the current instance of StepperStepBuilder .