Catalogue element
bry-data-table
A table the person sorts, filters, pages and chooses in.
Settings
| Setting | Takes | Needed |
|---|---|---|
columns | a list of at most 12: a record of key, heading, align, sortable, hideable (needs key, heading) | yes |
rows | a list of at most 500: a record of id, cells (needs id, cells) | no |
sort | a record of key, direction (needs key, direction) | no |
filter | text, at most 200 characters | no |
placeholder | text, at most 200 characters | no |
page | a whole number from 1 to 500 | no |
perPage | a whole number from 1 to 100 | no |
hidden | a list of at most 12: text, at most 128 characters | no |
selectable | true or false | no |
selected | a list of at most 500: text, at most 128 characters | no |
label | text, at most 200 characters | no |
loading | true or false | no |
empty | text, at most 200 characters | no |
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.

