EditResourceProps
Props for EditResource
Properties
config?
optionalconfig:EditResourceConfig
Configuration for the EditResource component
defaultTab?
optionaldefaultTab:TabsName
Default active tab
hasId?
optionalhasId:boolean
Indicates whether the resource has an id (if omitted, it is derived via isUuidSet(resourceId))
isNew?
optionalisNew:boolean
Indicates if this form is for creating a new resource
onCancelClick?
optionalonCancelClick:VoidFuncNoParam
Event handler called when the cancel button is clicked
onDeleteComplete?
optionalonDeleteComplete:VoidFuncNoParam
Event handler called when resource is successfully deleted
onLoadComplete?
optionalonLoadComplete:VoidFuncNoParam
Event handler called when resource loading completes
onPropertyUpdateComplete?
optionalonPropertyUpdateComplete:VoidFuncNoParam
Event handler called when the updated property data has been saved
onRefreshResource?
optionalonRefreshResource:VoidFuncNoParam
Event handler called when refreshing data display is required (e.g., updating tables/lists after creating or updating a resource)
onSaveClick()?
optionalonSaveClick: (v) =>void
Event handler called when the resource is saved, receiving the saved resource object with all form values, but with an empty Uuid in the id field
Parameters
v
Returns
void
onSaveComplete()?
optionalonSaveComplete: (v,r) =>void
Event handler called when resource is successfully saved
Parameters
v
boolean
r
string
Returns
void
onSavingEnding?
optionalonSavingEnding:VoidFuncNoParam
Event handler called when a saving process completes
onSavingStarting?
optionalonSavingStarting:VoidFuncNoParam
Event handler called when a new saving process is initiated
ref?
optionalref:Ref<EditResourceHandle>
Ref exposing save / getAllFormValues methods (same as before)
relatedResourceId?
optionalrelatedResourceId:string
Uuid value of the related resource that will be automatically filled in the field specified by relatedResourceName
relatedResourceName?
optionalrelatedResourceName:string
Name of the field that should be automatically filled with the related resource's Uuid when creating a related resource
resource?
optionalresource:WithId
Pre-loaded resource data (if not provided, will be loaded using resourceId)
resourceId?
optionalresourceId:string
Unique identifier for the resource being edited, or an empty Uuid when creating a new resource
setIsFormValid()?
optionalsetIsFormValid: (v) =>void
Callback function that allows parent components to receive form validity state updates
Parameters
v
boolean
Returns
void
uiResourceMeta
uiResourceMeta:
UiResourceMeta
Complete Ui metadata definition for the resource that provides structural information and rendering rules