Skip to main content

FormCardInput

Stentor API Reference


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​

FormInput.name


title?​

optional title: string

Defined in: packages/stentor-models/src/Form/FormField.ts:57

Optional title used to display on the input

Inherited from​

FormInput.title


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​

FormInput.type


shape?​

optional shape: "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​

FormInput.shape


condition?​

optional condition: 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​

FormInput.condition


mandatory?​

optional mandatory: boolean

Defined in: packages/stentor-models/src/Form/FormField.ts:76

Is the field required.

Inherited from​

FormInput.mandatory


mandatoryError?​

optional mandatoryError: 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​

FormInput.mandatoryError


mandatoryGroup?​

optional mandatoryGroup: 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​

FormInput.mandatoryGroup


style?​

optional style: 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​

FormInput.style


optional header: object

Defined in: packages/stentor-models/src/Form/FormField.ts:159

title​

title: string

subheader?​

optional subheader: string


media?​

optional media: object

Defined in: packages/stentor-models/src/Form/FormField.ts:164

height?​

optional height: number

width?​

optional width: number

imageUrl​

imageUrl: string

alt?​

optional alt: string


text?​

optional text: string

Defined in: packages/stentor-models/src/Form/FormField.ts:171


variant?​

optional variant: string

Defined in: packages/stentor-models/src/Form/FormField.ts:172


color?​

optional color: string

Defined in: packages/stentor-models/src/Form/FormField.ts:173


align?​

optional align: string

Defined in: packages/stentor-models/src/Form/FormField.ts:174