TinyBase logoTinyBase

TablesProps

TablesProps props are used for components that refer to all the Tables in a Store, such as the TablesView component.

{
  store?: StoreOrStoreId;
  tableComponent?: ComponentType<TableProps>;
  getTableComponentProps?: (tableId: Id) => ExtraProps;
  separator?: ReactElement | string;
  debugIds?: boolean;
}
TypeDescription
store?StoreOrStoreId

The Store to be accessed: omit for the default context Store, provide an Id for a named context Store, or provide an explicit reference.

tableComponent?ComponentType<TableProps>

A component for rendering each Table in the Store (to override the default TableView component).

getTableComponentProps?(tableId: Id) => ExtraProps

A custom function for generating extra props for each Table component based on its Id.

separator?ReactElement | string

A component or string to separate each Table component.

debugIds?boolean

Whether the component should also render the Ids of each Table, and its descendent objects, to assist with debugging.

Since

v1.0.0