Wizard
Manage a flow that is used as an integration instance.

Wizard
Set up a new instance with
config
parameters and set
/get
methods:const wizard = appmixer.ui.Wizard(config)
wizard.set(key, value)
wizard.get(key)
Type:
String
| Default: null
The ID of a flow that is opened in the wizard.
wizard.state(name, value)
Type:
Boolean
| Default: null
Toggle a custom loading state.
Type:
String
| Default: null
Toggle a custom error message.
wizard.on(event, handler)
wizard.on('flow:start', flowId => {/* ... */})
Submit the form and start the flow.
wizard.on('flow:validation', errors => {/* ... */})
Flow validation errors changed.
wizard.on('cancel', () => {/* ... */})
Click a button to close the form.
wizard.on('close', () => {/* ... */})
Submit the form and wait for the flow to start.
const wizard = appmixer.ui.Wizard({
el: '#wizard',
flowId: 'your-integration-id'
})
wizard.on('flow:start', async flowId => {
await appmixer.api.startFlow(flowId)
wizard.close()
})
wizard.open()
Last modified 1mo ago