TinyBase logoTinyBase β

SliceCallback

The SliceCallback type describes a function that takes a Slice's Id and a callback to loop over each Row within it.

(
  sliceId: Id,
  forEachRow: (rowCallback: RowCallback) => void,
): void
TypeDescription
sliceIdId

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

forEachRow(rowCallback: RowCallback) => void

A function that will let you iterate over the Row objects in this Slice.

returnsvoid

This has no return value.

A SliceCallback is provided when using the forEachSlice method, so that you can do something based on every Slice in an Index. See that method for specific examples.

Since

v1.0.0