ActionModel
ActionModel =
object
Defined in: packages/schema/src/model.ts:944
A named action of a view (.actions((a) => ...)); see Named actions.
Properties
Section titled “Properties”bulk:
boolean
Defined in: packages/schema/src/model.ts:957
Whether the action is meant for several records at once (a.action’s bulk).
confirm?
Section titled “confirm?”
optionalconfirm?:string
Defined in: packages/schema/src/model.ts:955
The question the button asks before it runs the action.
optionalicon?:string
Defined in: packages/schema/src/model.ts:953
The button’s icon: bath, bed, bell, bookmark, calendar, door-open, external-link, file-text, heart,
house, key, land-plot, leaf, ruler, send, tag or wallet; another name shows a lightning bolt.
inputs?
Section titled “inputs?”
optionalinputs?:ActionInputModel[]
Defined in: packages/schema/src/model.ts:961
What the button asks for in a dialog before the action runs: a handler gets the answers as values, an update writes them through set.
label:
string
Defined in: packages/schema/src/model.ts:948
The button’s label.
name:
string
Defined in: packages/schema/src/model.ts:946
The action’s name, which <Action name="..." /> and handlers use.
optionalrun?:ActionRun
Defined in: packages/schema/src/model.ts:959
What it does; without it the app runs the handler registered under name.