FormCardInput
Stentor API Reference / stentor-models/src / FormCardInput
Interface: FormCardInput
Defined in: packages/stentor-models/src/Form/FormField.ts:158
Card (text/image)
Extendsβ
Propertiesβ
nameβ
name:
string
Defined in: packages/stentor-models/src/Form/FormField.ts:53
Name of the form input, this is not human readable and is used to identify the field.
For example: "SERVICE" or "FULL_NAME"
Inherited fromβ
title?β
optionaltitle:string
Defined in: packages/stentor-models/src/Form/FormField.ts:57
Optional title used to display on the input
Inherited fromβ
typeβ
type:
"CARD"|"TEXT"|"DROPDOWN"|"CHECK"|"CHIPS"|"DATE"|"DATERANGE"
Defined in: packages/stentor-models/src/Form/FormField.ts:61
Type of the input
Inherited fromβ
shape?β
optionalshape:"ROUND"|"SQUARE"
Defined in: packages/stentor-models/src/Form/FormField.ts:65
Optional, used to shape the input. Not applicable to all inputs.
Inherited fromβ
condition?β
optionalcondition:string
Defined in: packages/stentor-models/src/Form/FormField.ts:72
A condition that must be met for the field to be shown.
For example: "issue === 'service_repair'" - issue is a field name in this example
Inherited fromβ
mandatory?β
optionalmandatory:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:76
Is the field required.
Inherited fromβ
mandatoryError?β
optionalmandatoryError:string
Defined in: packages/stentor-models/src/Form/FormField.ts:80
Error message to show when the field is required but not filled out.
Inherited fromβ
mandatoryGroup?β
optionalmandatoryGroup:string
Defined in: packages/stentor-models/src/Form/FormField.ts:84
Group fields together where one of the fields in the group is required.
Inherited fromβ
style?β
optionalstyle:object
Defined in: packages/stentor-models/src/Form/FormField.ts:90
React.CSSProperties style object to apply to the field.
For example: {{ width: '300px', height: '150px' }}
Inherited fromβ
header?β
optionalheader:object
Defined in: packages/stentor-models/src/Form/FormField.ts:159
titleβ
title:
string
subheader?β
optionalsubheader:string
media?β
optionalmedia:object
Defined in: packages/stentor-models/src/Form/FormField.ts:164
height?β
optionalheight:number
width?β
optionalwidth:number
imageUrlβ
imageUrl:
string
alt?β
optionalalt:string
text?β
optionaltext:string
Defined in: packages/stentor-models/src/Form/FormField.ts:171
variant?β
optionalvariant:string
Defined in: packages/stentor-models/src/Form/FormField.ts:172
color?β
optionalcolor:string
Defined in: packages/stentor-models/src/Form/FormField.ts:173
align?β
optionalalign:string
Defined in: packages/stentor-models/src/Form/FormField.ts:174