Interface: SelectFieldProperties
Defined in: src/components/AddSiteForm/SelectField.tsx:58
Properties for the SelectField component.
Extendsโ
Omit<StringFieldPropsBase,"value">
Propertiesโ
error?โ
readonlyoptionalerror:string
Defined in: shared/types/componentProps.ts:137
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message to display when validation fails
Inherited fromโ
helpText?โ
readonlyoptionalhelpText:string
Defined in: shared/types/componentProps.ts:139
Help text to provide guidance to users
Inherited fromโ
FormFieldBaseProperties.helpText
idโ
readonlyid:string
Defined in: shared/types/componentProps.ts:141
Unique identifier for the field (required for accessibility)
Inherited fromโ
labelโ
readonlylabel:string
Defined in: shared/types/componentProps.ts:143
Label text to display for the field
Inherited fromโ
required?โ
readonlyoptionalrequired:boolean
Defined in: shared/types/componentProps.ts:145
Whether the field is required for form submission
Inherited fromโ
FormFieldBaseProperties.required
optionsโ
readonlyoptions:SelectOption[]
Defined in: src/components/AddSiteForm/SelectField.tsx:61
Array of options to display in the dropdown
placeholder?โ
readonlyoptionalplaceholder:string
Defined in: src/components/AddSiteForm/SelectField.tsx:63
Placeholder text shown when no option is selected
valueโ
readonlyvalue:string
Defined in: src/components/AddSiteForm/SelectField.tsx:65
Current selected value
disabled?โ
readonlyoptionaldisabled:boolean
Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:23
Whether the field is disabled.
Inherited fromโ
onChange()โ
readonlyonChange: (value:string) =>void
Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:25
Change handler invoked with the new string value.
Parametersโ
valueโ
string
Returnsโ
void