Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple example error when using minified fin-hypergrid.min.js CDN #827

Open
jcmonnin opened this issue Mar 15, 2021 · 0 comments
Open

Simple example error when using minified fin-hypergrid.min.js CDN #827

jcmonnin opened this issue Mar 15, 2021 · 0 comments

Comments

@jcmonnin
Copy link

When trying to run the simple example locally, I it worked with
<script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.js'></script>
however it gave errors when using the minified version:
<script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.min.js'></script>

image


Following page gives the error:

<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta http-equiv="Cache-Control" content="must-revalidate" />
  <link rel="icon" type="image/png" href="img/hypergrid-icon.png">
</head>

<body>

  <script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.min.js'></script>

  <script>
    var grid = new fin.Hypergrid({
      data: [
        { symbol: 'APPL', name: 'Apple Inc.', prevclose: 93.13 },
        { symbol: 'MSFT', name: 'Microsoft Corporation', prevclose: 51.91 },
        { symbol: 'TSLA', name: 'Tesla Motors Inc.', prevclose: 196.40 },
        { symbol: 'IBM', name: 'International Business Machines Corp', prevclose: 155.35 }
      ]
    });
  </script>

</body>

</html>

This works:

<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta http-equiv="Cache-Control" content="must-revalidate" />
  <link rel="icon" type="image/png" href="img/hypergrid-icon.png">
</head>

<body>

  <script src='https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.js'></script>

  <script>
    var grid = new fin.Hypergrid({
      data: [
        { symbol: 'APPL', name: 'Apple Inc.', prevclose: 93.13 },
        { symbol: 'MSFT', name: 'Microsoft Corporation', prevclose: 51.91 },
        { symbol: 'TSLA', name: 'Tesla Motors Inc.', prevclose: 196.40 },
        { symbol: 'IBM', name: 'International Business Machines Corp', prevclose: 155.35 }
      ]
    });
  </script>

</body>

</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant