[ Web Proxy ]
URL:
Viewing: https://adminforth.dev/docs/api/Back/type-aliases/BeforeCreateSaveFunction/ [Back]  [Original]

BeforeCreateSaveFunction | Agent-first open-source admin panel framework
Skip to main content
On this page

BeforeCreateSaveFunction

BeforeCreateSaveFunction = (params) => Promise<{ error?: string | null; newRecordId?: string; ok: boolean; redirectToRecordId?: string; }>

Parameters

ParameterTypeDescription
params{ adminforth: IAdminForth; adminUser: AdminUser; extra?: HttpExtra; record: any; resource: AdminForthResource; response: IAdminForthHttpResponse; }-
params.adminforthIAdminForthAdminforth instance.
params.adminUserAdminUserAdmin user performing the action.
params.extra?HttpExtra-
params.recordanyRecord data to create.
params.resourceAdminForthResourceResource info.
params.responseIAdminForthHttpResponseHTTP response object. Deprecated Since 1.2.9. Will be removed in 4.0.0. Use extra.response instead.

Returns

Promise<{ error?: string | null; newRecordId?: string; ok: boolean; redirectToRecordId?: string; }>

Previous
BackendOnlyInput
Next
BeforeDataSourceRequestFunction

Web Proxy Viewer  |  New URL  |  Original Page