How to add license when using via npm

Posted by: nchalla on 10 February 2020, 12:35 am EST

  • Posted 10 February 2020, 12:35 am EST

    Hi,

    How to add license when referencing DataViewsJS in my npm-based applications.

    Thanks.

  • Posted 10 February 2020, 9:37 pm EST

    Internal tracking ID: JSVIEW-558

  • Posted 10 February 2020, 9:38 pm EST

    Hi,

    We could add the license key on the window object for npm-based application too. Please refer to the following code snippet and the sample demonstrating the same:

    window["GC"] = {
            DataViews: {
              LicenseKey: "XXXXXXX"
            }
          };
    

    https://codesandbox.io/s/dvjs-sample-pwdy2

    Further, we have also asked the dev team if there is any better alternative available. I’ll update you as soon as I hear back from the team.

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels