0.0.7 • Published 3 years ago

@beegridtable/bee-grid-table v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

bee-grid-table

Install

npm install @beegridtable/bee-grid-table 
#or
yarn add @beegridtable/bee-grid-table

bee-grid-table is published as ES2019 modules, you'll probably want to transpile those down to scripts for the browsers you target using Babel and browserslist.

last 2 chrome versions
last 2 edge versions
last 2 firefox versions
last 2 safari versions

See documentation

{
  "presets": [
    [
      "@babel/env",
      {
        "bugfixes": true,
        "shippedProposals": true,
        "corejs": 3,
        "useBuiltIns": "entry"
      }
    ]
  ]
}

See documentation

  • It's important that the configuration filename be babel.config.* instead of .babelrc.*, otherwise Babel might not transpile modules under node_modules.
  • We recommend polyfilling modern JS features with core-js by adding the following snippet at the top of your bundle's entry file:
    import "core-js/stable";
    • Babel's env preset, if configured correctly, will transform this import so only the necessary polyfills are included in your bundle.
  • Polyfilling the ResizeObserver API is required for older browsers.
{
  // ...
  module: {
    rules: {
      test: /\.js$/,
      exclude: /node_modules[/\\](?!@beegridtable/bee-grid-table[/\\]lib)/,
      use: 'babel-loader'
    }
  }
}

See documentation

{
  // ...
  plugins: {
    babel({
      include: ["./src/**/*", "./node_modules/@beegridtable/bee-grid-table/lib/**/*"],
    });
  }
}

See documentation

Usage

import BeeGridTable from "@beegridtable/bee-grid-table";

const columns = [
  { key: "id", name: "ID" },
  { key: "title", name: "Title" },
];

const rows = [
  { id: 0, title: "Example" },
  { id: 1, title: "Demo" },
];

function App() {
  return <BeeGridTable columns={columns} rows={rows} />;
}

Documentation

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago