Accounts
Manage accounts authorized by the current user.

Configuration
Set up a new instance with config
parameters and set
/get
methods:
const accounts = appmixer.ui.Accounts(config)
accounts.set(key, value)
accounts.get(key)
config.el
...
config.el
...
Instance
State
accounts.state(name, value)
loader
loader
Type: Boolean
| Default: null
Toggle a custom loading state.
error
error
Type: String
| Default: null
Toggle a custom error message.
Events
accounts.on(event, handler)
flow:open
flow:open
accounts.on('flow:open', flowId => {/* ... */})
Select a flow to open in Designer widget.
Example
const accounts = appmixer.ui.Accounts({
el: '#accounts'
})
accounts.open()
Last updated
Was this helpful?