Render a single row data as a grid of information.
Props
cells
A record of table cell definitions.
{ [x: string]: TableCell<any, any>; }
columns
The order and keys of the cells to be rendered. If omitted, all cells will be rendered.
string[]or
undefined
data
The data to render.
any
identifier
Passed to cell renderer as parent
.
string
detail
loading
Indicates if the loading indicators should be displayed
booleanor
undefined
TableCell
A single table cell definition.
Allows aligning the cell and header.
start
(default)end
center
The cell renderer. By default it will take the it's key in in the record, and extract that key from the row data.
Pass a custom class function, string or record to apply to the cell.
The anticipated length of the loaded text to be provided to c2-loading-text.
If this cell should be grouped with others.
If the table can be sorted by this column
The title to be placed in the header.
Appends a random number of characters (up to the specified amount) to the expectedLength.
Allows specifiying a predefined variant for the cell.
default
: The default styling.no-pad
: Removes padding.borderless
: Removes border, if set.full-width
: Breaks the cell onto its own row, taking the full width. **Only use on last cell of row, or in c2-table-detail. Not supported in c2-table-virtualized **exclude
: Disables the cell.