Catalogue element
bry-datagrid
An Airtable-style grid drawn from data: typed cells, a frozen first column, a range to copy, paste or fill, and a footer of totals.
Settings
| Setting | Takes | Needed |
|---|---|---|
label | text, at most 200 characters | no |
columns | a list of at most 200: a record of key, heading, type, width, readOnly, primary, precision, symbol, max, choices, statistic, description (needs key, heading, type) | yes |
rows | a list of at most 500: a record of id, cells (needs id, cells) | no |
offset | a whole number from 0 to 50000 | no |
total | a whole number from 0 to 50000 | no |
groups | a list of at most 500: a record of at, label, count, depth (needs at, label) | no |
frozen | a whole number from 0 to 10 | no |
lines | one, two, three, four | no |
editable | true or false | no |
addable | true or false | no |
selectable | true or false | no |
selected | a list of at most 500: text, at most 128 characters | no |
sort | a record of key, direction (needs key, direction) | no |
search | text, at most 200 characters | no |
loading | true or false | no |
empty | text, at most 200 characters | no |
Example
JSX
<bry-datagrid label={"Vendors"} editable={true} addable={true} total={2} columns={[{"key":"name","heading":"Name","type":"text","primary":true},{"key":"stage","heading":"Stage","type":"select","choices":[{"value":"Active","hue":"green"},{"value":"Review","hue":"orange"}]},{"key":"spend","heading":"Spend","type":"currency","symbol":"$","precision":2,"statistic":"Sum 4,620.00"},{"key":"renewal","heading":"Renewal","type":"date"},{"key":"paid","heading":"Paid","type":"checkbox"}]} rows={[{"id":"r1","cells":["Acme Hosting","Active","4200","2027-01-31","true"]},{"id":"r2","cells":["Globex","Review","420","2026-11-15",""]}]} />Renderer contact sheet
These paths will hold the checked light and dark captures.

