@michmich112/svelte-ag-grid
v1.1.1
Published
> Forked from [Budibase/svelte-ag-grid](https://github.com/Budibase/svelte-ag-grid)
Downloads
81
Readme
svelte-ag-grid
Forked from Budibase/svelte-ag-grid
A barebones wrapper around ag-grid.
Example usage:
<script>
import AgGrid from "@michmich112/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} />