Open the Javascript console in your web browser on the page where the widget is integrated.
A global object called rnwWidget is attached to the window. The following information is stored in this object:
-
rnwWidget.constants: Useful constants such as events are available for custom implementation.
-
rnwWidget.widgets.{type}.configurations: Configurations for the specified type of widget. In case of multiple widgets per page more than one configuration are available. A configuration is identified by the corresponding apikey.
-
rnwWidget.widgets.instances: For widget Tamina, Bre2 and Lema a widget reference is available under instances. Each instance is identified by apikey and name of the instance (default: “default”).
The following snippet shows how to access these parameters:
<script type="text/javascript">
//Constants
rnwWidget.constants;
//Configuration
rnwWidgets.widgets.lema.configurations["1234567890"]
//Instance
rnwWidget.widgets.instances["1234567890-default"];
</script>
Comments
0 comments
Please sign in to leave a comment.