Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


You can register a callback function which will be called after the widget loading. You need to add the data attribute data-on-ready with the name of the JavaScript function into the generated script tag.  The function should be added placed on the parent page before calling

the widget script. The function will be called one time after the loading and initialization of the widget. The toggle function (which toggles the widget states - opens it if closed, or closed it, if opened) will be passed to the callback function as a parameter.