@budibase/svelte-ag-grid

1.0.4 • Public • Published

svelte-ag-grid

A barebones wrapper around ag-grid.

Example usage:

<script>
  import AgGrid from "@budibase/svelte-ag-grid";

  let data = [
    { make: "Toyota", model: "Celica", price: 35000 },
    { make: "Ford", model: "Mondeo", price: 32000 },
    { make: "Porsche", model: "Boxter", price: 72000 },
  ];

  let columnDefs = [
    {
      headerName: "Make",
      field: "make",
      sortable: true,
      editable: true,
    },
    { headerName: "Model", field: "model", sortable: true },
    { headerName: "Price", field: "price", sortable: true },
  ];
</script>

<style>
  :global(:root) {
    --grid-height: 500px;
  }
</style>

<AgGrid bind:data {columnDefs} />

Readme

Keywords

Package Sidebar

Install

npm i @budibase/svelte-ag-grid

Weekly Downloads

26

Version

1.0.4

License

MIT

Unpacked Size

4.45 MB

Total Files

8

Last publish

Collaborators

  • mike_chuckles
  • shogunpurple