Skip to content

RowButtonChoice

RowButtonChoice = object & { to: AppAddress; } | { href: string; }

Defined in: packages/schema/src/model.ts:916

One choice of a row button: a button that opens an address in the app named by the row’s fields, such as { label: '{{verb}}', to: { kind: 'record', resource: 'tasks', key: '{{task_id}}', tab: '{{tab}}' } }, or the outside page a field holds, such as { label: 'Error report', href: '{{report_url}}' }.

label: string

The button’s text; {{field}} is replaced by the row’s value, an enum value by its label.