TinyBase logoTinyBase β

SliceInHtmlTableProps

SliceInHtmlTableProps props are used for components that will render an Index Slice in an HTML table, such as the SliceInHtmlTable component.

{
  indexId: Id;
  sliceId: Id;
  indexes?: IndexesOrIndexesId;
  editable?: boolean;
  customCells?: Ids | {[cellId: Id]: string | CustomCell};
}
TypeDescription
indexIdId

The Id of the Index in the Indexes object.

sliceIdId

The Id of the Slice in the Index to be rendered.

indexes?IndexesOrIndexesId

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

editable?boolean

Whether the Cells should be editable. This affects the default CellView component (to use the EditableCellView component instead) but of course will not affect custom Cell components if you have set them.

customCells?Ids | {[cellId: Id]: string | CustomCell}

An optional list of Cell Ids to use for rendering a prescribed set of the Slice's Cells in a given order. This can also be an object with the desired Cell Ids as keys, and with a value that can either be a string label to show in the column header, or a CustomCell object to further configure the column.

Since

v4.1.0