Table Sort
A small invoice table at work: a pointer sorts by amount, filters by status and ticks rows, and an action bar slides up with the selection. Visitors can sort the headers, pick a status chip, tick rows and press the action, all from the keyboard too.
pixikit.com/docs/blocks/illustrations/table-sort
Customize
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
16| Name | Type | Default | Description |
|---|---|---|---|
rows | TableSortRow[] | DEFAULT_ROWS | The table rows, in their starting order. |
title | string | "Invoices" | The name in the top bar and the hidden table caption. |
countLabel | string | "Rows: {n}" | The row count text; {n} becomes the number of visible rows. |
allLabel | string | "All" | The label of the first filter chip and of the select-all checkbox. |
selectedLabel | string | "Selected: {n}" | The text in the action bar; {n} becomes the number of selected rows. |
actionLabel | string | "Export" | The text of the action button. |
currency | string | "$" | The currency symbol before each amount. |
columns | TableSortColumns | DEFAULT_COLUMNS | The header labels. |
onAction | (rows: TableSortRow[]) => void | None | Called with the selected rows when the action button is pressed. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start layout after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |