Skip to content
PixiKit

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
NameTypeDefaultDescription
rowsTableSortRow[]DEFAULT_ROWSThe table rows, in their starting order.
titlestring"Invoices"The name in the top bar and the hidden table caption.
countLabelstring"Rows: {n}"The row count text; {n} becomes the number of visible rows.
allLabelstring"All"The label of the first filter chip and of the select-all checkbox.
selectedLabelstring"Selected: {n}"The text in the action bar; {n} becomes the number of selected rows.
actionLabelstring"Export"The text of the action button.
currencystring"$"The currency symbol before each amount.
columnsTableSortColumnsDEFAULT_COLUMNSThe header labels.
onAction(rows: TableSortRow[]) => voidNoneCalled with the selected rows when the action button is pressed.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again from the start layout after the hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related