@databrainhq/plugin
Databrain app ui web component plugin.
npm: @databrainhq/plugin
v0.15.135-uat
Code Style: StandardJS
Enforced using StandardJS styleguide.
Install
Github Repo Link
https://github.com/databrainhq/dbn-demos-updated/tree/main/dbn-demo-nextUsage
Quick usage:
dbn-metric
webcomponent:
- To find dashboardId please see here.
- To find metricId please see here.
Token
Thetoken
should be a guest token, fetched from your backend based on the current user’s login information. You can see more about it here.
Here is an example with sample token and dashboardId that you can use in your frontend app to get started without a backend.
Breakdown:
Import the library main or index or App or layout filedbn-dashboard
, dbn-metrics
are available to use anywhere inside your app. And you can use it anywhere in your app like: