StepperTagHelper
Kendo UI Stepper TagHelper StepperTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-stepper")]
[RestrictChildren("steps", new string[] { })]
public class StepperTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseStepperTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-stepper name="stepper">
<steps>
<step label="First" icon="home"></step>
<step label="Second" selected="true"></step>
<step label="Third"></step>
<step label="Fourth" enabled="false"></step>
<step label="Fifth"></step>
</steps>
</kendo-stepper>
Child Tags
Constructors
Initializes a new instance of the StepperTagHelper class.
Properties
Indicates whether the Steps in the Stepper will render their indicator element (the icon or number placed in a circle above the Step label).
public bool? Indicator { get; set; }
Indicates whether the Steps in the Stepper will render their label element (the text placed below the Step indicator circle).
public bool? Label { get; set; }
Indicates whether the Stepper will force the user to follow the Steps sequence or not. If set to "false" it will allow the user to select any step. If in its default state ("true") the user will be able to select the step immediately after the currently selected step or the previous step.
public bool? Linear { get; set; }
The name of the JavaScript function that will handle the activate event. Fires when a new Step has been selected upon user interaction.
public string OnActivate { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Stepper is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the select event. Fires when the user clicks on a Step to select it.
public string OnSelect { get; set; }
The type of the Stepper orientation (horizontal or vertical).
public StepperOrientationType? Orientation { get; set; }
Applicable for scenarios when keyboard is used for navigation. Indicates whether the selection will change upon focus change or it will require additional action (Enter or Spacebar key press) in order to select the focused step.
public bool? SelectOnFocus { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
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:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: