Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support resizable columns #6

Merged
merged 2 commits into from
Jun 11, 2021
Merged

feat: support resizable columns #6

merged 2 commits into from
Jun 11, 2021

Conversation

andreasbhansen
Copy link
Contributor

In Grid.js version 4.0.0, support for resizable columns was added (see docs).
This PR exposes an additional Svelte prop, <Grid resizable={true|false} /> (default false), which is passed to the new Grid({...}) instance.
The downside (?) is the necessary Grid.js peer dependency update in package.json.

The `resizable` prop was introduced in Gridjs 4.0.0, hence the peerdep update: https://github.com/grid-js/gridjs/blob/4.0.0/CHANGELOG.md#400-2021-04-23
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/
@vercel
Copy link

vercel bot commented Jun 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/iamyuu/gridjs-svelte/7ShvbYqnHw9EjvQycKy4iQj1dcLJ
✅ Preview: Failed

@iamyuu
Copy link
Owner

iamyuu commented Jun 11, 2021

Cool, thanks for creating a pull request.

@iamyuu iamyuu merged commit 5292912 into iamyuu:main Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants