Skip to content

charton API


charton API / @chart-on/ui / index / createSessionChip

Function: createSessionChip() ​

createSessionChip(bands, now?, options?): object

Defined in: ui/src/session-chip.ts:42

Bar chip for a session bands primitive: a dot per lane, solid while it is open, and a list with countdowns that opens away from the bar's edge. Ticks once a second and follows lane changes.

Parameters ​

bands ​

SessionBands

now? ​

() => number

options? ​

SessionChipOptions = {}

Returns ​

object

el ​

el: HTMLElement

destroy() ​

destroy(): void

Returns ​

void

refresh() ​

refresh(): void

Returns ​

void