time-ticker

Properties
namedescription
controllerAbort controller for the time ticker
disabledStop the time ticker.
durationMilliseconds to wait between ticks
enabledStart the time ticker. Toggles disabled state
idxCurrent index of items (if applicable)
itemsItems to rotate through and broadcast
loopLoop the time ticker.
repeatUpper bound for idx before being reset to 0
ticksNumber of ticks encountered regardless of any looping / repeating.
valueCurrently selected idx value and selected item
waitWait for the duration before firing the first tick.
Attributes
namedescription
controllerAbort controller for the time ticker
disabledStop the time ticker.
durationMilliseconds to wait between ticks
enabledStart the time ticker. Toggles disabled state
idxCurrent index of items (if applicable)
itemsItems to rotate through and broadcast
loopLoop the time ticker.
repeatUpper bound for idx before being reset to 0
ticksNumber of ticks encountered regardless of any looping / repeating.
valueCurrently selected idx value and selected item
waitWait for the duration before firing the first tick.
Methods
namedescription
onTicksReact to an uptick.
rotateItemsSet rotating items
startStarts the timer
stopStop the timer