TinyBase logoTinyBase β

useCellIds

The useCellIds hook returns a reactive object reflecting the Ids of the Cells in a Row, and registers a listener so that any changes will update .current.

useCellIds(
  tableId: MaybeGetter<string>,
  rowId: MaybeGetter<string>,
  storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): {current: Ids}
TypeDescription
tableIdMaybeGetter<string>

The Id of the Table (or a getter returning it).

rowIdMaybeGetter<string>

The Id of the Row (or a getter returning it).

storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use (plain value or getter), or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0