new WizardContext(ctx, steps)
Parameters:
Name | Type | Description |
---|---|---|
ctx | OpengramContext | Context |
steps | Array.<Middleware> | Steps |
- Source
Members
step
Getter returns current step handler
- Source
Methods
back() → {WizardContext}
Decrements step of wizard
- Source
Returns:
- Type:
- WizardContext
next() → {WizardContext}
Increments step of wizard
- Source
Returns:
- Type:
- WizardContext
selectStep(index) → {WizardContext}
Selects step of wizard
Parameters:
Name | Type | Description |
---|---|---|
index | number | Step index, starting from |
- Source
Returns:
- Type:
- WizardContext