Keyword index
{/* Generated by TestKeywordIndexIsCurrent in compiler/parse/keywordindex_test.go from compiler/parse/vocab.go. Do not edit; run make golden-update. */}
This page lists what the compiler accepts in each block of a .mtd file. It is generated
from the compiler’s own vocabulary, so it is complete. A keyword the compiler accepts is on this
page, and a keyword on this page is accepted.
Accepted means the parser reads it. Some keywords take effect only in some places, for example
field only in a form. The linked section says where. A keyword without a link has no
reference text yet.
A file
Section titled “A file”What a .mtd file holds at its top level.
| Kind | Keyword | Reference |
|---|---|---|
| Declarations | app |
The app block: app |
| Declarations | i18n |
The app block: i18n |
| Declarations | page |
The page block: page |
| Declarations | right |
Access rules and rights: right |
| Declarations | table |
The table block: table |
The body of the app block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | locale |
The app block: locale |
| Properties | locales |
The app block: locales |
| Properties | mount |
The app block: mount |
| Properties | timezone |
The app block: timezone |
| Statements | auth |
The app block: auth |
| Statements | drop |
The app block: drop |
| Statements | job |
The app block: job |
| Statements | messages |
The app block: messages |
| Statements | nav |
The app block: nav |
| Statements | retention |
The app block: retention |
| Statements | roles |
The app block: roles |
| Statements | scope |
The app block: scope |
| Statements | theme |
The app block: theme |
The body of the app’s theme block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | accent |
The app block: accent |
The body of the app’s auth block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | methods |
The app block: methods |
| Blocks | lockout |
The app block: lockout |
| Blocks | profile |
The app block: profile |
| Blocks | session |
The app block: session |
lockout
Section titled “lockout”The body of auth’s lockout block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | after |
The app block: after |
| Properties | for |
The app block: for |
session
Section titled “session”The body of auth’s session block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | idle_timeout |
The app block: idle_timeout |
| Properties | lifetime |
The app block: lifetime |
profile
Section titled “profile”The body of a profile block of auth.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | for |
The app block: for |
The body of the app’s scope block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | default |
The app block: default |
The body of a table block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | display |
The table block: display |
| Properties | scope |
The table block: scope |
| Statements | after |
The table block: after |
| Statements | before |
The table block: before |
| Statements | check |
The table block: check |
| Statements | drop |
The table block: drop |
| Statements | lifecycle |
The table block: lifecycle |
| Statements | rename |
The table block: rename |
| Statements | require |
The table block: require |
| Statements | retention |
The table block: retention |
| Statements | retype |
The table block: retype |
| Statements | unique |
The table block: unique |
| Statements | versions |
The table block: versions |
| Hook events | delete |
The table block: insert, update and delete |
| Hook events | insert |
The table block: insert, update and delete |
| Hook events | update |
The table block: insert, update and delete |
A column
Section titled “A column”A column line of a table: name type modifiers "Label" { properties }.
lifecycle
Section titled “lifecycle”The body of a table’s lifecycle block.
| Kind | Keyword | Reference |
|---|---|---|
| Statements | state |
The table block: state |
| Statements | transition |
The table block: transition |
Modifiers of state |
default |
The table block: lifecycle |
Modifiers of state |
gone |
The table block: state |
Modifiers of state |
public |
The table block: state |
transition
Section titled “transition”The body of a lifecycle’s transition block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
The table block: access |
| Properties | reopen |
The table block: reopen |
| Statements | after |
The table block: before and after in a transition |
| Statements | approvals |
The table block: approvals |
| Statements | before |
The table block: before and after in a transition |
| Statements | deny |
The table block: deny |
| Statements | set |
The table block: set |
The body of a page block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
The page block: access |
| Properties | mode |
The page block: mode |
| Properties | new_route |
The page block: new_route |
| Properties | route |
The page block: route |
| Properties | timezone |
The page block: timezone |
| Properties | width |
The page block: width |
| Statements | aside |
The page block: aside |
| Statements | data |
The page block: data |
| Statements | note |
Regions: note |
| Statements | row |
The page block: row |
| Statements | var |
The page block: var |
| Regions | chart |
Regions: chart |
| Regions | compare |
Regions: compare |
| Regions | detail |
Regions: detail |
| Regions | form |
Regions: form |
| Regions | list |
Regions: list |
| Regions | matrix |
Regions: matrix |
| Regions | report |
Regions: report |
| Regions | sheet |
Regions: sheet |
| Regions | stats |
Regions: stats |
| Regions | versions |
Regions: versions |
The body of a page’s note block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | style |
Regions: note |
| Properties | text |
Regions: note |
| Properties | when |
Regions: note |
The body of a page’s row block: one to three regions in equal columns.
| Kind | Keyword | Reference |
|---|---|---|
| Statements | note |
Regions: note |
| Regions | chart |
Regions: chart |
| Regions | detail |
Regions: detail |
| Regions | form |
Regions: form |
| Regions | list |
Regions: list |
| Regions | stats |
Regions: stats |
The body of a page’s aside "Label" block: a pane beside the page’s content.
| Kind | Keyword | Reference |
|---|---|---|
| Statements | note |
Regions: note |
| Regions | chart |
Regions: chart |
| Regions | detail |
Regions: detail |
| Regions | form |
Regions: form |
| Regions | list |
Regions: list |
| Regions | stats |
Regions: stats |
The body of a chart of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | by |
Regions: chart |
| Properties | empty |
Regions: chart |
| Properties | kind |
Regions: chart |
| Properties | last |
Regions: chart |
| Properties | stack |
Regions: chart |
| Properties | test_id |
Regions: test_id |
| Properties | top |
Regions: chart |
| Properties | where |
Regions: chart |
| Properties | x |
Regions: chart |
| Properties | y |
Regions: chart |
compare
Section titled “compare”The body of a compare <column> with <column> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | empty |
Regions: compare |
| Properties | test_id |
Regions: test_id |
detail
Section titled “detail”The body of a detail of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | body |
— |
| Properties | fields |
— |
| Properties | row |
— |
| Properties | test_id |
Regions: test_id |
The body of a form of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | actions |
Regions: actions: duplicate and the duplicate block |
| Properties | after_save |
Regions: after_save: sets where a save lands |
| Properties | fields |
Regions: form |
| Properties | readonly |
Regions: form |
| Properties | submit |
— |
| Properties | success |
Regions: form |
| Properties | test_id |
Regions: test_id |
The body of a list of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | alarm |
Regions: Export formats |
| Properties | alarm_before |
Regions: Export formats |
| Properties | all_day |
Regions: Export formats |
| Properties | at |
Regions: Export formats |
| Properties | columns |
Regions: report |
| Properties | details |
Regions: Export formats |
| Properties | empty |
Regions: report |
| Properties | ends |
Regions: Export formats |
| Properties | export |
Regions: report |
| Properties | export_button |
Regions: report |
| Properties | export_name |
Regions: report |
| Properties | gone |
Regions: report |
| Properties | limit |
Regions: list |
| Properties | page_size |
Regions: list |
| Properties | place |
Regions: Export formats |
| Properties | repeat |
Regions: Export formats |
| Properties | sort |
Regions: report |
| Properties | test_id |
Regions: test_id |
| Properties | upcoming |
Regions: Export formats |
| Properties | url |
Regions: Export formats |
| Properties | url_note |
Regions: Export formats |
| Properties | where |
Regions: report |
matrix
Section titled “matrix”The body of a matrix of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | cell |
Regions: matrix |
| Properties | empty |
— |
| Properties | key |
Regions: matrix |
| Properties | test_id |
Regions: test_id |
report
Section titled “report”The body of a report of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | alarm |
Regions: Export formats |
| Properties | alarm_before |
Regions: Export formats |
| Properties | all_day |
Regions: Export formats |
| Properties | at |
Regions: Export formats |
| Properties | columns |
Regions: report |
| Properties | details |
Regions: Export formats |
| Properties | empty |
Regions: report |
| Properties | ends |
Regions: Export formats |
| Properties | export |
Regions: report |
| Properties | export_button |
Regions: report |
| Properties | export_name |
Regions: report |
| Properties | filter |
Regions: report |
| Properties | gone |
Regions: report |
| Properties | group_by |
Regions: group_by: names the keys |
| Properties | limit |
Regions: report |
| Properties | page_size |
Regions: report |
| Properties | place |
Regions: Export formats |
| Properties | repeat |
Regions: Export formats |
| Properties | search |
Regions: report |
| Properties | sort |
Regions: report |
| Properties | striped |
Regions: report |
| Properties | test_id |
Regions: test_id |
| Properties | total |
Regions: report |
| Properties | upcoming |
Regions: Export formats |
| Properties | url |
Regions: Export formats |
| Properties | url_note |
Regions: Export formats |
| Properties | where |
Regions: report |
The body of a sheet of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | actions |
Regions: sheet |
| Properties | columns |
Regions: sheet |
| Properties | empty |
Regions: sheet |
| Properties | filter |
Regions: sheet |
| Properties | gone |
Regions: sheet |
| Properties | page_size |
Regions: sheet |
| Properties | search |
Regions: sheet |
| Properties | sort |
Regions: sheet |
| Properties | test_id |
Regions: test_id |
| Properties | where |
Regions: sheet |
The body of a stats of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | gone |
Regions: stats |
| Properties | group_by |
Regions: stats |
| Properties | test_id |
Regions: test_id |
| Properties | where |
— |
versions
Section titled “versions”The body of a versions of <table> region.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Access rules and rights: access |
| Properties | test_id |
Regions: test_id |
matrix axes
Section titled “matrix axes”The rows of and columns of blocks of a matrix.
| Kind | Keyword | Reference |
|---|---|---|
| Axes | columns |
— |
| Axes | rows |
Regions: matrix |
Properties of rows of |
gone |
Regions: matrix |
Properties of rows of |
label |
Regions: matrix |
Properties of rows of |
sort |
— |
Properties of rows of |
where |
Regions: matrix |
Properties of columns of |
gone |
Regions: matrix |
Properties of columns of |
group |
— |
Properties of columns of |
label |
Regions: matrix |
Properties of columns of |
sort |
— |
Properties of columns of |
where |
Regions: matrix |
A grouped report line
Section titled “A grouped report line”The column <name> <definition> lines of a report with group_by:, and the block after each.
| Kind | Keyword | Reference |
|---|---|---|
| Statements | column |
Regions: column lines say what a group shows |
| Definitions | count |
Regions: column lines say what a group shows |
| Definitions | decimal |
Regions: column lines say what a group shows |
| Definitions | int |
Regions: Export formats |
| Definitions | max |
Regions: column lines say what a group shows |
| Definitions | min |
Regions: column lines say what a group shows |
| Definitions | money |
Regions: column lines say what a group shows |
| Definitions | sum |
Regions: column lines say what a group shows |
Properties of count |
where |
Regions: report |
Properties of sum |
empty |
Regions: report |
Properties of sum |
weight |
Regions: column lines say what a group shows |
Properties of sum |
where |
Regions: report |
Properties of min and max |
empty |
Regions: report |
Properties of min and max |
where |
Regions: report |
Properties of int and decimal |
value |
Regions: column lines say what a group shows |
chart y
Section titled “chart y”The block after a chart’s y: sum(<column>).
| Kind | Keyword | Reference |
|---|---|---|
| Properties | empty |
Regions: chart |
| Properties | weight |
Regions: chart |
Region statements
Section titled “Region statements”The statements of a region. They are explained with form, where most of them take effect. duplicate is accepted only in a form. chart, compare and versions regions take none of them.
| Kind | Keyword | Reference |
|---|---|---|
| Statements | after |
— |
| Statements | before |
— |
| Statements | button |
Regions: button gives a note one action |
| Statements | deny |
— |
| Statements | duplicate |
Regions: actions: duplicate and the duplicate block |
| Statements | field |
— |
| Statements | row |
— |
| Statements | row_action |
Regions: Icons on a button and a row_action |
| Statements | set |
Regions: set |
The body of a form’s field <column> block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | add_via |
Regions: add_via: creates the row a ref field is missing |
| Properties | empty_label |
— |
| Properties | help |
— |
| Properties | label |
— |
| Properties | max |
— |
| Properties | min |
— |
| Properties | quick_picks |
Regions: quick_picks: puts a value into a field with one press |
| Properties | rows |
— |
| Properties | show_when |
Regions: show_when: hides a field in the browser |
| Properties | suggest |
Regions: suggest: offers a value for an empty field |
duplicate
Section titled “duplicate”The body of a form’s duplicate block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | access |
Regions: actions: duplicate and the duplicate block |
| Properties | clear |
Regions: actions: duplicate and the duplicate block |
| Properties | label |
Regions: actions: duplicate and the duplicate block |
Action blocks
Section titled “Action blocks”A form’s delete block and a sheet’s delete and add blocks: who may use one action the region offers.
| Kind | Keyword | Reference |
|---|---|---|
| Blocks | add |
Regions: Action blocks |
| Blocks | delete |
Regions: Action blocks |
| Properties | access |
Access rules and rights: access |
An access rule
Section titled “An access rule”The block after a role in an access { … } or right block.
| Kind | Keyword | Reference |
|---|---|---|
| Properties | grants |
Access rules and rights: grants |
Expressions
Section titled “Expressions”The functions a condition or a computed value may call.
| Kind | Keyword | Reference |
|---|---|---|
| Functions | coalesce |
Expressions: coalesce |
| Functions | days_since |
Expressions: days_since |
| Functions | days_until |
Expressions: days_until |
| Functions | dev |
Expressions: dev |
| Functions | exists |
Expressions: exists |
| Functions | ratio |
Expressions: ratio |
| Functions | round |
Expressions: round |
| Functions | threshold |
Expressions: threshold |