Skip to main content

Class: RoboWizard<Values>

robo-wizard.RoboWizard

typeparam Generic type for the configured state machine, based on the Machine type from robot

Type parameters

NameTypeDescription
Valuesextends object = BaseValuesGeneric type for object of values being gathered through the wizard steps This class is the return value from createWizard and the only way to be instantiated.

Accessors

currentStep

get currentStep(): any

Returns the current step of the wizard

Returns

any

Defined in

core/src/index.ts:134


currentValues

get currentValues(): Values

Returns the current state of values been gathered through the wizard

Returns

Values

Defined in

core/src/index.ts:141

Methods

goToNextStep

goToNextStep(event?): void

Parameters

NameTypeDescription
eventPartial<UpdateEvent<Values>>Optional object with a values field to described what Values should be updated, see [[UpdateEvent]] Progress to the next step in the wizard

Returns

void

Defined in

core/src/index.ts:149


goToPreviousStep

goToPreviousStep(event?): void

Parameters

NameTypeDescription
eventPartial<UpdateEvent<Values>>Optional object with a values field to described what Values should be updated, see [[UpdateEvent]] Progress to the previous step in the wizard

Returns

void

Defined in

core/src/index.ts:157


start

start(onChange, values?): void

Parameters

NameTypeDescription
onChangeChangeHandler<Values>[[ChangeHandler]] for reacting when the wizard updates, this will be called immediately
values?ValuesOptional object of initial values to use when creating the wizard This should be called before trying to access any other methods or properties, otherwise an Error will be thrown

Returns

void

Defined in

core/src/index.ts:121


sync

sync(event): void

Parameters

NameTypeDescription
eventObjectOptional object with a step field to described what the current step should be Sync the external updated step with internal service
event.stepstring-

Returns

void

Defined in

core/src/index.ts:165