You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: example.qmd
+4-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ sverto:
8
8
- Circles.svelte
9
9
---
10
10
11
-
Here's an example of how to use the included example Svelte component,`Circles.svelte`.
11
+
This document shows you how to use a basic example Svelte component called`Circles.svelte`.
12
12
13
13
Create one using `fileName.default()`, where `fileName` is the file name without `.svelte`:
14
14
@@ -44,9 +44,11 @@ viewof selectedDataset =
44
44
Now we can update the prop `data` of the visual `myCircles` using:
45
45
46
46
```{ojs}
47
+
//| output: false
47
48
myCircles.data = selectedDataset
48
49
```
49
50
50
51
And there you go! 🚀
51
52
52
-
For more help writing Svelte components, check out the [Svelte tutorial](https://svelte.dev/tutorial/basics).
53
+
For more help writing Svelte components, check out the [Svelte tutorial](https://svelte.dev/tutorial/basics) or take look at some of the examples in the [Sverto documentation](https://sverto.jamesgoldie.dev).
0 commit comments