Methods
This page describes the methods available on the _dixa_
object in the global scope.
The only method available is invoke
(besides add and remove listeners), that can be used to invoke the methods described here.
Methods
Methods
invoke
▸ invoke(method
, payload
): void
init
method. Once called, the widget iframe will be added to the DOM, the widget will
be initialized and the toggler will show up (if it is not disabled in the payload).
The payload can be used to customize the initialization behavior, for example it is possible to hide
the default toggler button setting the hideToggler
property to true:
_dixa_.invoke('init', {
messengerToken: '[YOUR_MESSENGER_TOKEN]',
hideToggler: true,
});
You can find all the options in the widget web Commands page.
Returns
void