Accounts

Manage accounts authorized by the current user.

Accounts

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 ...

Learn about widget config here.

Instance

Learn about widget instance here.

State

accounts.state(name, value)

loader

Type: Boolean | Default: null

Toggle a custom loading state.

error

Type: String | Default: null

Toggle a custom error message.

Events

accounts.on(event, handler)

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