Skip to main content

TableRow

TableRow is the row-data record used by DataTable.

Each row has a stable id plus a list of string cells. The table matches those cells to the columns by index, so the order of the strings matters.

Example

use fission::prelude::*;

let row = TableRow {
id: "invoice_1024".into(),
cells: vec!["Paid".into(), "15 May 2026".into(), "$49.00".into()],
};

Field table

FieldTypeMeaningNotes / default behavior
idStringStable row identifier.Required. Used for selection state and callbacks.
cellsVec<String>Cell text in the same order as the table's columns.Required. Extra cells render against fallback widths; missing cells leave gaps in meaning.

Specific advice

Keep the real row data in structured app state and derive cells for presentation. That way sorting, filtering, and actions can continue to use typed data instead of parsing display strings back into meaning.

DataTable, TableColumn, Text, and Card.