Skip to main content

@databrainhq/plugin

Databrain app ui web component plugin.

npm: @databrainhq/plugin

v0.15.135-uat

Code Style: StandardJS

Enforced using StandardJS styleguide.
https://github.com/databrainhq/dbn-demos-updated/tree/main/dbn-demo-vanilla

Usage

In your index.html file, add the following script
Note: If you want to use a specific version, add the version in place of latest. For example
If you get process error in your console, add the below script above your cdn script
Use global document object to create components. Add the below script in your script file like main.js or inside script tags.

Integrating Dashboard:

Integrating Metric

Note: If you don’t want to use cdn link, you can install the below npm package.
Add import statement like below in your main.js file.