Skip to content

Commit

Permalink
feat: add support for resizable columns
Browse files Browse the repository at this point in the history
Exports an additional Svelte boolean prop `resizable`, and passes it to the Grid.js instance.
Docs by Grid.js https://gridjs.io/docs/examples/resizable/
  • Loading branch information
andreasbhansen authored Jun 10, 2021
1 parent 5911d04 commit dec1ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gridjs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
export let height: string = "auto";
export let autoWidth: boolean = true;
export let fixedHeader: boolean = false;
export let resizable: boolean = false;
export let from: HTMLElement = undefined;
export let language: Language = undefined;
export let search: SearchConfig | boolean = false;
Expand Down Expand Up @@ -74,6 +75,7 @@
fixedHeader,
style,
className,
resizable,
});
instance.on('cellClick', (...args) => dispatch('cellClick', {...args}))
Expand Down

0 comments on commit dec1ef5

Please sign in to comment.