Skip to content

Commit

Permalink
simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Sep 5, 2024
1 parent a80b387 commit 98c3e34
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/core/src/lib/table/ag-grid-table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,20 @@ import {
type GridApi,
type GridOptions,
type GridParams,
type Module,
} from 'ag-grid-community';
import { onMount } from 'svelte';
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-quartz.css';
import classNames from 'classnames';
type Options = GridOptions<DataType>;
export let options: Options = {};
export let modules: Module[] = [];
export let options: GridOptions<DataType> = {};
export let params: GridParams = {};
let grid: GridApi<DataType>;
let eGui: HTMLDivElement;
onMount(() => {
const gridParams: GridParams = {
modules,
};
grid = createGrid(eGui, options, gridParams);
grid = createGrid(eGui, options, params);
return () => {
grid.destroy();
Expand Down

0 comments on commit 98c3e34

Please sign in to comment.