TinyBase logoTinyBase

TableCellCallback

The TableCellCallback type describes a function that takes a Cell's Id and the count of times it appears across a whole Table.

(
  cellId: Id,
  count: number,
): void
TypeDescription
cellIdId

The Id of the Cell that the callback can operate on.

countnumber

The number of times this Cell is used across a whole Table.

returnsvoid

This has no return value.

A TableCellCallback is provided when using the forEachTableCell method, so that you can do something based on every Cell used across a Table. See that method for specific examples.

Since

v1.0.0