Catalogue element

bry-data-table

A table the person sorts, filters, pages and chooses in.

Settings

SettingTakesNeeded
columnsa list of at most 12: a record of key, heading, align, sortable, hideable (needs key, heading)yes
rowsa list of at most 500: a record of id, cells (needs id, cells)no
sorta record of key, direction (needs key, direction)no
filtertext, at most 200 charactersno
placeholdertext, at most 200 charactersno
pagea whole number from 1 to 500no
perPagea whole number from 1 to 100no
hiddena list of at most 12: text, at most 128 charactersno
selectabletrue or falseno
selecteda list of at most 500: text, at most 128 charactersno
labeltext, at most 200 charactersno
loadingtrue or falseno
emptytext, at most 200 charactersno

Example

JSX

<bry-data-table label={"Issues"} placeholder={"Filter issues"} perPage={2} selectable={true} columns={[{"key":"title","heading":"Title","sortable":true,"hideable":false},{"key":"status","heading":"Status","sortable":true},{"key":"age","heading":"Age","align":"end"}]} rows={[{"id":"1","cells":["Crash on save","To do","2d"]},{"id":"2","cells":["Search ignores accents","Doing","5d"]},{"id":"3","cells":["Dark mode flickers","Done","9d"]}]} />

Renderer contact sheet

These paths will hold the checked light and dark captures.

Light
bry-data-table light renderer capture
Dark
bry-data-table dark renderer capture