Scenes. WizardContext

new WizardContext(ctx, steps)

Parameters:
NameTypeDescription
ctxOpengramContext

Context

stepsArray.<Middleware>

Steps

Members

step

Getter returns current step handler

Methods

back() → {WizardContext}

Decrements step of wizard

Returns:
Type: 
WizardContext

next() → {WizardContext}

Increments step of wizard

Returns:
Type: 
WizardContext

selectStep(index) → {WizardContext}

Selects step of wizard

Parameters:
NameTypeDescription
indexnumber

Step index, starting from 0 (zero)

Returns:
Type: 
WizardContext