FormChipsInput
Stentor API Reference / stentor-models/src / FormChipsInput
Interface: FormChipsInput
Defined in: packages/stentor-models/src/Form/FormField.ts:214
Close/Open style chips selection field.
Displays items as chips that can be selected/deselected. Header plus open symbol reveals the chips.
Extendsβ
Propertiesβ
nameβ
name:
string
Defined in: packages/stentor-models/src/Form/FormField.ts:81
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:85
Optional title used to display on the input
Inherited fromβ
shape?β
optionalshape?:"ROUND"|"SQUARE"
Defined in: packages/stentor-models/src/Form/FormField.ts:93
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:100
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:104
Is the field required.
Inherited fromβ
mandatoryError?β
optionalmandatoryError?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:108
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:112
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:118
React.CSSProperties style object to apply to the field.
For example: {{ width: '300px', height: '150px' }}
Inherited fromβ
typeβ
type:
"CHIPS"
Defined in: packages/stentor-models/src/Form/FormField.ts:215
Type of the input
Overridesβ
radio?β
optionalradio?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:220
When true, allows only single selection (radio button behavior). When false or undefined, allows multiple selections.
defaultOpen?β
optionaldefaultOpen?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:224
Whether the chips are shown by default or collapsed
minRequired?β
optionalminRequired?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:228
Minimum number of items that must be selected
maxAllowed?β
optionalmaxAllowed?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:232
Maximum number of items that can be selected
itemsβ
items: (
SelectableItem|ActionableItem)[]
Defined in: packages/stentor-models/src/Form/FormField.ts:236
List of selectable or actionable items to display as chips