-
currently you can set the number of clicks in the front matter. however, if I'm handling clicks inside a component how do I set the number of clicks? currently unless I add the total clicks to the front matter, then my slide advances after 1 click even if the component itself it designed to handle a variable number of clicks. I tried looking inside the injected $clicks variable but don't see an easy way to set the total (there is only a getter for total?). thanks for pointers! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
Thanks to @kermanx I got this working with one minor clarification. Putting full notes here in case it is useful to someone in the future. So I have some custom component call
Then in my template I'm like stepping through my people prop which is an array
The only not that stumped me was that I needed to refer to the clicks by |
Beta Was this translation helpful? Give feedback.
You can import it from
'@slidev/client/utils'
. In fact, it just generates a random string