Block heads, sugar, and placement.

Generated from the language definition for language 1.0.

Blocks

A sugar head prints for a block whose config keys are all in its row; any other block is the generic block <type> [#id] { … }. An id is implicit (derived from the page, the block's index path and its type) unless pinned with #id.

Sugar

HeadBlock typeRenders onSubjectOptionsConfig keysMeaning
listentity_listlist pagesEntitycolumns, label, size, search, sort, layoutentity_name, columns, label, page_size, enable_search, default_sort_field, default_sort_dir, layout, fixed_filter, link_columns, query, args, visible_whenA table of an entity's records, or of a query's rows (list from <query>).
boardjob_listlist pagesschemasummary, label, hide, size, layoutschema_id, schema_name, label, summary_fields, exclude_terminal, page_size, layout, visible_whenA workflow's jobs, grouped by state.
sectionsectiondetail templates"…"—label, children, visible_whenA labelled group of detail blocks.
fieldentity_fieldeitherfieldlabel, displayfield_key, label, display_type, visible_whenOne field of the record.
relatedentity_related_listdetail templatesEntitycolumns, label, sum, state, empty, sortrelated_entity_name, filter_field, source_field, columns, label, sum_field, job_state, empty_message, sort_field, sort_dir, query, args, visible_whenRecords of another entity that point at this one (where <field> = this).
jobsentity_job_listdetail templates—label, summary, updatedschema_id, label, summary_fields, show_updated_at, visible_whenThe record's jobs.
actionaction_buttoneither"…"on, confirm, help, permission, visible, enabledlabel, schema_id, schema_name, event_type, action, inputs, confirm, help, requires_permission, visible_when, enabled_whenA button that fires a workflow event or runs a script.
statstateither"…"—label, query, args, value, visible_whenOne number: an aggregate expression or a query's single value.
chartcharteither"…"kindlabel, query, args, kind, visible_whenA chart over an aggregate expression or a query.
cardcardeither—titletitle, children, visible_whenA card with an optional title expression around its children.
columnscolumnseither——columns, visible_whenSide-by-side columns, each a column { … } of elements.
tabstabseither——tabs, visible_whenTabs, each a tab "…" { … } of elements.
texttexteitherexprstyle, formatvalue, style, format, currency, visible_whenA value expression rendered as text.
badgebadgeeitherexprcolourvalue, colour_by, visible_whenA value expression rendered as a coloured badge.
imageimageeitherexpraltsrc, alt, visible_whenAn image whose source is a value expression.
linklinkeitherexpr—label, page, record, visible_whenA link to a page, with the record it opens (link <label> to <page> (<record>)).
eacheacheitherwordlayout, columnsvar, source, query, args, layout, columns, param_paths, children, visible_whenThe children once per row of a set the server resolves (each <var> in <Entity where …> { … }).
usevieweitherview—view, args, visible_whenA view mounted with its arguments (use <view> (<args>)).

Options

Written after the block's subject as <word> <value>, in any order; the decompiler prints them in each head's order above.

OptionKindValueConfig keysHeadsMeaning
columnsfield-list[field, …]columnslist, related, eachThe fields shown as columns.
labelstring"…"labellist, board, field, related, jobsThe heading shown over the block.
sizenumbernpage_sizelist, boardRows per page.
searchboolean`onoff`enable_searchlist
sortsort`field [ascdesc]`default_sort_field, default_sort_dirlist
sortsort`field [ascdesc]`sort_field, sort_dirrelated
layoutwordwordlayoutlist, board, eachHow the rows are laid out.
summaryfield-list[field, …]summary_fieldsboard, jobsThe payload fields shown on each job card.
hideenumterminalexclude_terminalboardhide terminal leaves finished jobs off the board.
displaywordworddisplay_typefieldHow the value is rendered.
updatedboolean`onoff`show_updated_atjobs
sumfield-reffieldsum_fieldrelatedA field totalled under the list.
statewordwordjob_staterelatedOnly records whose job is in this state.
emptystring"…"empty_messagerelatedThe text shown when there are no records.
kindwordwordkindchartThe chart type.
confirmstring"…"confirmactionA confirmation asked before the action runs.
helpstring"…"helpactionHelp text shown beside the button.
onschema-refschemaschema_nameactionThe workflow the event fires on (else the block binds by an empty schema_id).
permissionpermissiondotted.idrequires_permissionactionThe permission a user needs to see the button.
visibleexprwhen exprvisible_whenactionA browser-evaluated gate on showing the button.
enabledexprwhen exprenabled_whenactionA browser-evaluated gate on enabling the button.
typesfield-list[field, …]types—Reserved for forms.
styleenum`headingmutedmonostrong`
formatwordwordformat, currencytextHow the value is formatted (money USD, date, datetime, relative, percent, number).
colourenum`stateenumnone`colour_by
altvalueexpraltimageThe image's alternative text, a value expression.
titlevalueexprtitlecardThe card's title, a value expression.

Known block types

Observed in the shipped layouts and the two renderers; the generic form accepts any of them (and the ruleset checks placement).

action_button, availability_calendar, badge, booking_portal_link, calendar, captable_overview, captable_table, card, chart, client_portal_settings, columns, data_grid, document_viewer, each, entity_card, entity_field, entity_job_list, entity_list, entity_notes, entity_ref, entity_related_list, export_button, external_launch, fleet_map, foresight_sim, form, form_field, fsm_dashboard, heading, image, job_list, line_item_editor, link, location_picker, paragraph, payroll_review, pos_dashboard, pos_inventory_settings, pos_loyalty_program, pos_print_feed, pos_tax_config, review_due_badge, roster_grid, route_map, section, selected_record, service_report, shift_claims, shift_time_setup, signature_view, split_pane, staff_access, stat, stat_strip, tab_container, tabs, template_updates, text, timeline, turn_by_turn, view, workflow_overview, xero_payroll