Button
A button fires a declared action or navigates to another screen.
When a button submits an action, the values of sibling inputs on the same screen are collected as the action params. When it navigates, no action fires. Inside a Repeat row template the button works with that row: it can capture the row values it fires with, and carry the row key when it navigates.
Properties
- Label: the button text. Required.
- Intent: visual weight: normal, primary, or danger.
- Action: the declared action this button submits. Params are collected from sibling inputs on the screen.
- With: extra values merged into the submit. Each value is a literal, a read from another component as {from: 'node.emit'}, or a row('column') expression that captures the current Repeat row's value.
- Goto: a screen name. Clicking navigates there instead of firing an action.
- Key: a column name. On a goto button inside a Repeat template, the current row's value for this column rides the navigation as the row key. The target screen receives which row was opened.
One click, one job
A button either fires or navigates. With Goto set, clicking navigates and no action fires.