Skip to main content

TableColumn

TableColumn is the column-definition record used by DataTable.

A good column definition answers three things: what the column represents, how wide it should be, and whether the interface should visually hint that the column can be sorted.

Example

use fission::prelude::*;

let column = TableColumn {
id: "updated_at".into(),
title: "Updated".into(),
width: 140.0,
sortable: true,
};

Field table

FieldTypeMeaningNotes / default behavior
idStringStable application-level column identifier.Required. Useful for your own sort and visibility logic.
titleStringHeader label shown at the top of the column.Required.
widthf32Display width for the column.Required. Choose widths deliberately for the data shape.
sortableboolWhether the header should show a sort affordance.The checked-in table uses this only as a visual indicator.

Specific advice

Keep ids stable even if titles are localized or renamed. Product logic should usually sort or hide columns by id, not by user-facing text.

DataTable, TableRow, Text, and Pagination.