Once you have retrieved the ActiveUI
variable through the Node.js or script tag way, you can initialize the library and access its API by calling the initialize function:
const activeUI = ActiveUI.initialize();
ActiveUI offers several configuration options that allow, for instance, to change the default value of a setting, to add locales or themes, or to change the default logger by another one.
To initialize ActiveUI with custom options, you can do:
const activeUI = ActiveUI.initialize({
defaultSettings: {
'global.locale': 'fr-FR',
'global.logger': 'verbose'
},
...
});