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