Skip to main content

AfterCreateSaveFunction

AfterCreateSaveFunction = (params) => Promise<{ error?: string; ok: boolean; }>

Parameters

ParameterTypeDescription
params{ adminforth: IAdminForth; adminUser: AdminUser; extra?: HttpExtra; record: any; recordId: any; recordWithVirtualColumns?: any; resource: AdminForthResource; response: IAdminForthHttpResponse; }-
params.adminforthIAdminForthAdminforth instance.
params.adminUserAdminUserAdmin user performing the action.
params.extra?HttpExtraExtra HTTP information. Prefer using extra.response over the top-level response field.
params.recordanyRecord data after creation.
params.recordIdanyPrimary key value of the record to delete.
params.recordWithVirtualColumns?anyRecord with virtual columns after creation.
params.resourceAdminForthResourceResource info.
params.responseIAdminForthHttpResponseHTTP response object. Deprecated Since 1.2.9. Will be removed in 2.0.0. Use extra.response instead.

Returns

Promise<{ error?: string; ok: boolean; }>