The JavaScript API provides more control over the widget. You can customize the widget behavior programmatically.
The JavaScript API can be called via window._dixa
object after the snippet widget code, e.g. the API can be called with: _dixa(function name{string}, parameter, ... parameter);
It's possible to add as many requests as you need with the following eg.:
window._dixa('api.setLanguage', 'en-US'); // Set the language to English.