Skip to main content

DefaultInputField

@prismatic-io/spectral"types/server-types"DefaultInputField

Defines attributes of a InputField.

Hierarchy#

Index#

Properties#

Properties#

Optional collection#

collection? : InputFieldCollection

Defined in types/server-types.ts:136

Collection type of the InputField


Optional comments#

comments? : undefined | string

Defined in types/server-types.ts:142

Additional text to give guidance to the user configuring the InputField.


Optional default#

default? : undefined | string

Defined in types/server-types.ts:140

Default value for this field.


Optional example#

example? : undefined | string

Defined in types/server-types.ts:144

Example valid input for this InputField.


key#

key: string

Defined in types/server-types.ts:130

Unique identifier of the InputField. Must be unique within an Action.


label#

label: string

Defined in types/server-types.ts:132

Interface label of the InputField.


Optional model#

model? : InputFieldChoice[] | InputFieldModelFunction

Defined in types/server-types.ts:148

Dictates possible choices or a function to generate choices for the InputField.


Optional placeholder#

placeholder? : undefined | string

Defined in types/server-types.ts:138

Text to show as the InputField placeholder.


Optional required#

required? : undefined | false | true

Defined in types/server-types.ts:146

Indicate if this InputField is required.


type#

type: InputFieldType

Defined in types/server-types.ts:134

Data type the InputField will collect.