Skip to content

kauaicreative/svelte-ag-grid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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} />

About

A svelte wrapper component around ag-grid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 74.0%
  • JavaScript 26.0%