WizardTagHelper
Kendo UI Wizard TagHelper WizardTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-wizard")]
[RestrictChildren("messages", new string[] { "stepper", "wizard-steps", "validate-forms" })]
public class WizardTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseWizardTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-wizard name="wizard">
<wizard-steps>
<wizard-step title="Initial step">
<wizard-step-content>
<h1>Initial step content</h1>
</wizard-step-content>
</wizard-step>
<wizard-step title="Second step">
<wizard-step-content>
<h1>Second step content</h1>
</wizard-step-content>
</wizard-step>
<wizard-step title="Final step">
<wizard-step-content>
<h1>Final step content</h1>
</wizard-step-content>
</wizard-step>
</wizard-steps>
</kendo-wizard>
Child Tags
Constructors
Initializes a new instance of the WizardTagHelper class.
Properties
Indicates whether the Steps in the Wizard will render their Buttons and Pager element.
public bool? ActionBar { get; set; }
The position of the Wizard step content according to the embedded Stepper widget.
public WizardContentPosition? ContentPosition { get; set; }
Indicates whether the step content will be loaded on demand when a given step is selected. Applicable when the step configuration has "contentUrl" set.
public bool? LoadOnDemand { 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 contentLoad event. Triggered when content is fetched from an AJAX request and has been loaded.
public string OnContentLoad { get; set; }
The name of the JavaScript function that will handle the done event. Triggered when the "Done" action Button has been clicked
public string OnDone { get; set; }
The name of the JavaScript function that will handle the error event. Triggered when an attempt to fetch step content with an AJAX request fails. The event will be fired only when the user clicks on the Previous or Next button, or navigates to another step using the Stepper. It will not be fired if the remote request is raised as a result of a Step.load() method call.
public string OnError { get; set; }
The name of the JavaScript function that will handle the formValidateFailed event. Fired when the validateForms configuration option is set to true (default), and the validation of the Kendo UI Form on the current Wizard step fails when the user tries to navigate to another step.
public string OnFormValidateFailed { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Wizard 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 reset event. Triggered when the "Reset" action Button has been clicked
public string OnReset { get; set; }
The name of the JavaScript function that will handle the select event. Fires when the user clicks on the Stepper or clicks on "Previous"/"Next" action Buttons to select another step.
public string OnSelect { get; set; }
Indicates whether the Steps in the Wizard will render their Pager element.
public bool? Pager { get; set; }
Indicates whether the step content will be reloaded on each navigation to given step. Applicable when the step configuration has "contentUrl" set.
public bool? ReloadOnSelect { 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: