TinyBase logoTinyBase β

ValuesInHtmlTableProps

ValuesInHtmlTableProps props are used for components that will render Values in an HTML table, such as the ValuesInHtmlTable component.

{
  store?: StoreOrStoreId;
  editable?: boolean;
  valueComponent?: ComponentType<ValueProps>;
  getValueComponentProps?: (valueId: Id) => ExtraProps;
}
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.

editable?boolean

Whether the Values should be editable. This affects the default ValueView component (to use the EditableValueView component instead) but of course will not affect a custom valueComponent if you have set one.

valueComponent?ComponentType<ValueProps>

A custom component for rendering each Value in the Store (to override the default ValueView component).

getValueComponentProps?(valueId: Id) => ExtraProps

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

Since

v4.1.0