time-ticker
name | description |
---|---|
controller | Abort controller for the time ticker |
disabled | Stop the time ticker. |
duration | Milliseconds to wait between ticks |
enabled | Start the time ticker. Toggles disabled state |
idx | Current index of items (if applicable) |
items | Items to rotate through and broadcast |
loop | Loop the time ticker. |
repeat | Upper bound for idx before being reset to 0 |
ticks | Number of ticks encountered regardless of any looping / repeating. |
value | Currently selected idx value and selected item |
wait | Wait for the duration before firing the first tick. |
name | description |
---|---|
controller | Abort controller for the time ticker |
disabled | Stop the time ticker. |
duration | Milliseconds to wait between ticks |
enabled | Start the time ticker. Toggles disabled state |
idx | Current index of items (if applicable) |
items | Items to rotate through and broadcast |
loop | Loop the time ticker. |
repeat | Upper bound for idx before being reset to 0 |
ticks | Number of ticks encountered regardless of any looping / repeating. |
value | Currently selected idx value and selected item |
wait | Wait for the duration before firing the first tick. |
name | description |
---|---|
onTicks | React to an uptick. |
rotateItems | Set rotating items |
start | Starts the timer |
stop | Stop the timer |