Versions Compared

Key

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

Example and reference

Latest versionDocumentation
2TODO: put link to demo deployment

...

The widget library only contains a loader that will automatically load the widget definition when needed. You have to include the following script inclusion to get the

...

Code Block
languagexml
themeEclipse
titleInclude script
<script type="text/javascript" src="https://s3.eu-central-1.amazonaws.com/pub.tnwi.int1-s3.secutix.com/stx-widgets/Widgets.js"

...

></script

...

This Widget file generate the STX global object that contains the widget library. The library contains only the library loading system. The needed script will be loaded automatically following the widgets declaration, taking only the needed widgets.

...

Anywhere in the website, you can include a HTML tag with an id that will be pass later to the widget definition

Code Block
languagexml
themeEclipse
titleExemple of container
< ... the rest of the

...

 website>
    <div id="product_1"> </div>

...


    <div id="product_2"> </div>

...


</ ... the rest of the website>


Get information

The information needed to display a widget are of two kinds : global and local.

...