The code list hands your code the rows of its table, in one sandboxed frame, with the template's variables evaluated once per row. Where the custom list stamps a designed card per row, the code list gives you the whole surface: a board, a chart over the rows, a grid of cards, whatever your HTML and JavaScript draw.
Try it: Tick a task to update its row, click a title to open its record, and switch the update capability off to see the write refused.
Settings
Open tasks
MaraOpen
JonasDone
PriyaOpen
Example. A code list block over a Tasks table. In the real app this is HTML, CSS and JavaScript the author wrote, running in one sandboxed frame that receives every row: the code draws a card per row, the checkbox calls Emberblocks.updateRow() only when the template declares the update capability, and the title calls Emberblocks.open() to navigate to the row's record page. This is a static stand-in, not a live frame.
Create a listcode template on the Templates tab, bound to one table. Variables are formulas over that table's row, so each row arrives as { id, values, vars } with the hidden fields already stripped.
The block loads rows the way every list block does: the source table, the view's filters, and on a record page the record filter. Up to 500 rows reach the frame; the code calls Emberblocks.loadMore() while hasMore is true.
The code receives the rows through Emberblocks.onData() and is called again whenever they change: a realtime update, a Load more, or a write of its own.
Declared capabilities let it update, create or delete rows and run the table's actions; Emberblocks.open(rowId) navigates to the record page chosen in Row click opens.
The list template to run: templates bound to the block's table only.
Row click opens
record view
The record page Emberblocks.open(rowId) navigates to. Unset, open() is refused and the code is told so.
Add button
on / off + label
The standard Add affordance above the frame, opening the table's form view.
The sandbox
One frame, no origin: the rows it receives are the rows the viewer may already see, hidden fields excluded, and nothing it does reaches the page around it. Writes go back through the app and the same server permissions every form and button uses; a public link makes the block read-only. The Code blocks guide covers the payload, the SDK and the limits.
Like every block, this one also has the shared block settings: an optional title (which shows as a heading above the block) with a description under it, auto-height, conditional visibility, and role-based visibility, plus the source table and record-filter settings shared by all data blocks.