kor TürkçeGitHub

Wizard

Leads through a long task step by step.

kor/ui/WizardSource

When to use

  • Use it for rare tasks with several dependent steps.

Examples

New supplier

Loading the example

<k:Wizard finish=".onFinish" finishText="Create">
	<k:WizardStep title="Company" text="Who is the supplier?">
		<k:Form><k:FormSection><k:TextField label="Name" required="true"/></k:FormSection></k:Form>
	</k:WizardStep>
	<k:WizardStep title="Terms"><k:NumberField label="Payment days" value="30"/></k:WizardStep>
	<k:WizardStep title="Review"><k:Message text="Check the details before you create the supplier." state="info"/></k:WizardStep>
</k:Wizard>

API

Properties

NameTypeDefaultDescription
currentint0Current step, starting at 0
finishTextstringText of the last button
workingbooleanfalseWhether work is in progress

Aggregations

NameTypeDescription
stepsWizardStep[]Steps

Events

NameTypeDescription
stepChangefrom: int
to: int
The step is changing. preventDefault stops it
finishThe last step was confirmed
cancelCancelled. The button is hidden when not attached

Methods

NameDescription
validate(): booleanValidates the forms in the current step.
goTo(to: number): booleanMoves to a step. Validates the current step when moving forward.

WizardStep

A wizard step.

Properties

NameTypeDefaultDescription
titlestringTitle
textstringDescription
nextTextstringText of the next button
validbooleantrueApplication check. False blocks moving on

Aggregations

NameTypeDescription
contentsap.ui.core.Control[]Content

Related

FormStages