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

Kendo UI WizardStepButton TagHelper WizardStepButtonTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("wizard-step-button", ParentTag = "wizard-step-buttons", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class WizardStepButtonTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseWizardStepButtonTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-wizard name="wizard">
    <wizard-steps>
        <wizard-step>
            <wizard-step-buttons>
                <wizard-step-button name="btn" text="Click me" click="handler"></wizard-step-button>
            </wizard-step-buttons>
        </wizard-step>
    </wizard-steps>
</kendo-wizard>

<script>
    function handler(e) {
        //handler code
    }
</script>

Constructors

Initializes a new instance of the WizardStepButtonTagHelper class.

C#
public WizardStepButtonTagHelper()

Properties

A click handler that defines the logic to be executed upon button click.

C#
public string Click { get; set; }

Specifies whether the Button in question is enabled or not.

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

Specifies the name of the Button. The default buttons have "reserved" names (those names are "previous", "next", "done", "reset"). That would allow additional customization of that Buttons' text and behavior.

C#
public string Name { get; set; }

Specifies whether the Button will have the k-primary class assigned or not.

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

Specifies the text to be displayed in the Button.

C#
public string Text { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

Dictionary<string, object>