SvelteKit Radial Progress Component #752
rhscjohn-dev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to figure out how to update a Radial Progress component in SvelteKit. I coded up this little example. I coded a setInterval function to update every 2 seconds. I then have a counter that is incremented by 1 every time the interval is updated. Whenthe value of counter reaches 60, the counter is reset to 0. The ratio of counter to the maximum value of counter(display Value) is displayed as a percentage in the Radial Progress component.
DaisyUI version: 2.2.1
radialProgress.svelte
Beta Was this translation helpful? Give feedback.
All reactions