Props

NameTypeDefault valueRequired?Description
countNumber-YesThe current count value, used to highlight the selected cell.
choreoObject-NoThe choreography object containing hits and counts.
interactiveBooleantrueNoWhether the table is interactive (clickable).
stickyHeaderBooleantrueNoWhether the header should stick to the top when scrolling.
fontSizeNumber-YesThe font size for the table cells.
startCountNumber0NoThe starting count for the table, used to calculate the achter values.
fixedBooleanfalseNoWhether the table should have fixed headers and footers.

Computed

NameTypeDescription
achterArrayAn array of objects representing the "achter" rows, each containing counts and hits.
tableHeightStringThe height of the table, calculated based on the window height.

Events

NamePayload TypeDescription
setCounterNumberEmitted when a count is set by clicking a button. The value is calculated as `achter * 8 + count`.
openCreateHitModalnullNotifies parent component to call open() on CreateHitModal

Examples

<CountSheet :count="0" :fontSize="16" @setCounter="handler" @openCreateHitModal="handler" />
<CountSheet :count="0" :choreo="choreoObj" :interactive="false" :stickyHeader="false" :fontSize="18" :startCount="2" :fixed="true" @setCounter="handler" @openCreateHitModal="handler" />