JS-Loader
The JS-loader is the preferred way to integrate Datablocks widgets. It's basically a script wrapping (and executing) a function that takes as it's input a set of widget tokens and corresponding DOM-element selectors, then fetches the widgets and inserts them into the DOM-elements.
In practice, an integration could look like the example below, where an anonymous function takes the requested widget information, fetches the loader, inserts the loader into the page, and adds the specified widgets to the loader's input.
Credentials needed
Credential
Description
<WIDGET_TYPE>
The type of widget, i.e. "owner-list", "stock-chart", etc.
<TOKEN>
Specific token for the widget
Example
The query setting has support for any CSS-selector.
Last updated
Was this helpful?