ActionInputModel
ActionInputModel =
object
Defined in: packages/schema/src/model.ts:972
One input of a named action’s dialog (inputs: (i) => [...]); see Named actions.
Properties
Section titled “Properties”component?
Section titled “component?”
optionalcomponent?:string
Defined in: packages/schema/src/model.ts:1001
The project component (defineUi({ components })) a custom input is, which gets ActionInputProps.
default?
Section titled “default?”
optionaldefault?:JsonValue
Defined in: packages/schema/src/model.ts:986
What it holds when the dialog opens.
optionalhelp?:string
Defined in: packages/schema/src/model.ts:980
A line under it.
kind:
ActionInputKind
Defined in: packages/schema/src/model.ts:976
What it asks for.
label:
string
Defined in: packages/schema/src/model.ts:978
Its label.
optionalmax?:number
Defined in: packages/schema/src/model.ts:990
The most characters a text may have.
multiline?
Section titled “multiline?”
optionalmultiline?:boolean
Defined in: packages/schema/src/model.ts:988
A text that runs over several lines, in a box that grows with it.
name:
string
Defined in: packages/schema/src/model.ts:974
The input’s name: the key of its answer in the handler’s values, and how when names it.
options?
Section titled “options?”
optionaloptions?:object[]
Defined in: packages/schema/src/model.ts:992
A choice’s values, each with its label, in order.
label:
string
What it reads as.
value:
string
The value the handler gets.
props?
Section titled “props?”
optionalprops?:Record<string,JsonValue>
Defined in: packages/schema/src/model.ts:1003
The plain data a custom input’s component gets as props.
required
Section titled “required”required:
boolean
Defined in: packages/schema/src/model.ts:982
Whether it must be answered before the action runs; a boolean never must.
resource?
Section titled “resource?”
optionalresource?:string
Defined in: packages/schema/src/model.ts:999
The resource a choice picks a record of; the handler gets its key.
optionalwhen?:string
Defined in: packages/schema/src/model.ts:984
An AIP-160 condition over the inputs before it, such as plan = 'pro'; it shows, and is answered, only while it holds.