TinyBase logoTinyBase

ResultRowCallback

The ResultRowCallback type describes a function that takes a ResultRow's Id and a callback to loop over each ResultCell within it.

(
  rowId: Id,
  forEachCell: (cellCallback: ResultCellCallback) => void,
): void
TypeDescription
rowIdId

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

forEachCell(cellCallback: ResultCellCallback) => void
returnsvoid

This has no return value.

A ResultRowCallback is provided when using the forEachResultRow method, so that you can do something based on every ResultRow in a ResultTable. See that method for specific examples.