InterfaceEditModalProps
Interface: InterfaceEditModalProps
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:167
Props for EditModal template
Specialized template for editing existing entities. Parent component handles data fetching and passes pre-populated form fields as children.
Extends
Properties
centered?
optionalcentered:boolean
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:79
Whether to center the modal vertically on the page
Inherited from
InterfaceCrudModalBaseProps.centered
children
children:
ReactNode
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:172
Form content to render inside the modal body Parent should pass form fields pre-populated with entity data
className?
optionalclassName:string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:73
Additional CSS class name for the modal
Inherited from
InterfaceCrudModalBaseProps.className
data-testid?
optionaldata-testid:string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:84
Test ID for the modal container (useful for testing)
Inherited from
InterfaceCrudModalBaseProps.data-testid
error?
optionalerror:string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:62
Error message to display in the modal body When provided, shows an Alert component with the error
Inherited from
InterfaceCrudModalBaseProps.error
loading?
optionalloading:boolean
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:56
Indicates whether an async operation is in progress When true, displays a loading spinner and disables action buttons
Inherited from
InterfaceCrudModalBaseProps.loading
loadingData?
optionalloadingData:boolean
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:184
Whether data is currently being loaded Shows a loading state while fetching entity data
onClose()
onClose: () =>
void
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:37
Callback function invoked when the modal is closed Triggered by close button, backdrop click, or Escape key
Returns
void
Inherited from
InterfaceCrudModalBaseProps.onClose
onSubmit()
onSubmit: (
event) =>void|Promise<void>
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:178
Callback function invoked when the form is submitted Should handle the update logic and return a Promise
Parameters
event
FormEvent<HTMLFormElement>
Returns
void | Promise<void>
open?
optionalopen:boolean
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:26
Controls whether the modal is visible (defaults to false)
Inherited from
InterfaceCrudModalBaseProps.open
primaryText?
optionalprimaryText:string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:43
Text for the primary action button
Inherited from
InterfaceCrudModalBaseProps.primaryText
secondaryText?
optionalsecondaryText:string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:49
Text for the secondary action button
Inherited from
InterfaceCrudModalBaseProps.secondaryText
size?
optionalsize:ModalSize
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:68
Modal size variant
Inherited from
InterfaceCrudModalBaseProps.size
submitDisabled?
optionalsubmitDisabled:boolean
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:190
Whether the submit button should be disabled Useful for dirty form checking
title
title:
string
Defined in: src/types/shared-components/CRUDModalTemplate/interface.ts:31
Modal title displayed in the header