WizardStepBuilder
Methods
Form(System.Action)
Configures the Wizard Step's built-in Form
Parameters
configurator - System.Action<FormBuilder>
The configurator for the Form
RETURNS
Returns the current WizardStepBuilder instance.
Icon(System.String)
Specifies the Stepper's step icon.
Parameters
value - System.String
The value that configures the icon.
RETURNS
Returns the current WizardStepBuilder instance.
Example
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =>
{
steps.Add().Icon("k-i-home").ContentUrl(Url.Content("~/shared/web/wizard/ajax/ajaxContent1.html")).Title("Welcome")
.Buttons(b =>
{
b.Next();
});
})
)
IconTemplate(System.String)
Specifies the Stepper's step iconTemplate.
Parameters
value - System.String
The value that configures the iconTemplate.
RETURNS
Returns the current WizardStepBuilder instance.
Example
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =>
{
steps.Add().IconTemplate("<i @class='k-icon k-i-home'></i>").ContentUrl(Url.Content("~/shared/web/wizard/ajax/ajaxContent1.html")).Title("Welcome")
.Buttons(b =>
{
b.Next();
});
})
)
IconTemplateId(System.String)
Specifies the Stepper's step iconTemplateId.
Parameters
value - System.String
The value that configures the iconTemplateId.
RETURNS
Returns the current WizardStepBuilder instance.
Example
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps =>
{
steps.Add().IconTemplateId("homeTemplate").ContentUrl(Url.Content("~/shared/web/wizard/ajax/ajaxContent1.html")).Title("Welcome")
.Buttons(b =>
{
b.Next();
});
})
)
Content(System.String)
Specifies the HTML string content to be rendered in the step.
Parameters
value - System.String
The value for Content
Content(System.Func)
Sets the HTML content which the item should display.
Parameters
value - System.Func<Object,Object>
The content wrapped in a regular HTML tag or text tag (Razor syntax).
Example
@(Html.Kendo().Wizard()
.Name("wizard")
.Steps(steps => steps
.Add()
.Content(
@<text>
Some text
<strong> First Item Content</strong>
</text>
);
)
)
Buttons(System.Action)
Allows configuration of the buttons to be rendered on each step. If the array contains strings, those values will be taken as Buttons names. If the array contains objects, those will be used when initializing the actual Button instances on each step.
Parameters
configurator - System.Action<WizardStepButtonFactory>
The configurator for the buttons setting.
ContentId(System.String)
Specifies the id of a DOM element, which content to be used as a content of the current step.
Parameters
value - System.String
The value for ContentId
ContentUrl(System.String)
Specifies an endpoint which the step content should be loaded from.
Parameters
value - System.String
The value for ContentUrl
ClassName(System.String)
Specifies a custom class that will be set on the step container element.
Parameters
value - System.String
The value for ClassName
Enabled(System.Boolean)
Specifies whether the step is enabled or not.
Parameters
value - System.Boolean
The value for Enabled
Pager(System.Boolean)
Specifies whether the pager will be rendered on the current step or not.
Parameters
value - System.Boolean
The value for Pager
Title(System.String)
Specifies a title of the current step.
Parameters
value - System.String
The value for Title