Skip to content

Commit

Permalink
Add object nesting test example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitschpatrol committed Jun 9, 2024
1 parent 200cc16 commit 56dc725
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/examples/tests/TestAutoObjectNesting.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script lang="ts">
// https://github.com/kitschpatrol/svelte-tweakpane-ui/issues/10
import { AutoObject } from '$lib';
let object = {
aFolder: {
aSetting: 0,
bFolder: {
bSetting: 0,
cFolder: {
cSetting: 0
}
}
}
};
</script>

<AutoObject bind:object />

<pre>Value: <span>{JSON.stringify(object)}</span></pre>

0 comments on commit 56dc725

Please sign in to comment.