useTableRowIndex @astryx-svelte/core v0.3.0 · Table
Usage
Hook that returns a TablePlugin which prepends a right-aligned, monospaced row-number column. Numbering follows the rendered data order (reflecting the current sort / filter / pagination view) and starts at 1 by default. Astryx renderCell receives only the row item, so the plugin takes the rendered data array to derive each ordinal.tsimport { Table } from '@astryx-svelte/core';
Examples
Common configurations, variations, and states.useTableRowIndex — Numbered Rows
A table with a prepended row-number column via useTableRowIndex. Numbering is monospaced, right-aligned, and follows the rendered data order.