Skip to main content

Module sortable_data_table

Module sortable_data_table 

Source
Expand description

Ported from Arc (MIT) © 2026 Elia Kuratli Reference: Arc源码/arc-library/registry/components/sortable-data-table/sortable-data-table.tsx & .module.css

P6 Component #6: sortable-data-table

  • Sortable flat data table with natural numeric/case-insensitive collation, empty values pinned at the bottom in both ascending and descending directions, subtle sorted-column highlight tint, and spring-rotating sort arrow (0° ↔ 180°).
  • Optional selection column with header tri-state checkbox, row-click selection with Shift range extension, Escape clear, and animated footer count swap (N selected / N rows).

Structs§

DataColumn
Column configuration for SortableDataTable.
DataTableRow
Row entry for SortableDataTable.
SortState
Active sort state for SortableDataTable.
SortableDataTable
Sortable flat data table with column highlight tint, multi-select & Shift range selection (sortable-data-table).

Enums§

DataCellValue
Cell value stored in a DataTableRow.
SortDirection
Sort direction (asc / desc).

Functions§

sort_data_table_rows
Sorts rows stably while always pinning empty values at the bottom regardless of direction.