Skip to content

Commit

Permalink
Merge pull request #61 from WJSoftware:JP/Corrections
Browse files Browse the repository at this point in the history
chore: Update svelte v5
  • Loading branch information
webJose authored Jul 23, 2024
2 parents 1afe063 + 5b3f1d0 commit 31db946
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"!dist/**/*.spec.*"
],
"peerDependencies": {
"svelte": "^5.0.0-next.175"
"svelte": "^5.0.0-next.195"
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.2",
Expand Down
8 changes: 7 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
data: { data: WjDvRow<Person>[]; }
} = $props();
let gridData = $state([] as WjDvRow<Person>[]);
$effect.pre(() => {
gridData = data.data;
});
let columns = $state<WjDvColumn<Person>[]>([
{
key: 'id',
Expand Down Expand Up @@ -130,7 +136,7 @@ import &#123; WjDataView &#125; from '@wjfe/dataview';</pre>
<WjDataViewTheme theme={themeOptions.currentTheme}>
<WjDataView
bind:columns
bind:data={data.data}
bind:data={gridData}
striped={demoOptions.striped}
rowTracking={demoOptions.rowTracking}
rowSelectionHighlight={demoOptions.rowSelectionHighlight}
Expand Down

0 comments on commit 31db946

Please sign in to comment.