For Single Entity
SubmitOptions
SubmitOptions: { path?: string; errorSelector?: string; loadingName?: string; successName?: string; failureName?: string }
Type declaration
Optional path?: string
Optional errorSelector?: string
Optional loadingName?: string
Optional successName?: string
Optional failureName?: string
Const submit
- submit(repository: Repository): (method: "add" | "replace", options: SubmitOptions, store: Store) => Store | Promise<any>
Parameters
Returns (method: "add" | "replace", options: SubmitOptions, store: Store) => Store | Promise<any>
- (method: "add" | "replace", options: SubmitOptions, store: Store): Store | Promise<any>
Parameters
method: "add" | "replace"
store: Store
Returns Store | Promise<any>
ResetOptions
ResetOptions: { confirmName?: string }
Type declaration
Optional confirmName?: string
Const reset
Parameters
Returns Store | Promise<any>
Const editPart
- editPart(partPath: string, formPath: string, store: Store): Store
Parameters
partPath: string
formPath: string
store: Store
Returns Store
Const makePart
- makePart(pathToAdd: string, data: Json, formPath: string, store: Store): Store
Parameters
pathToAdd: string
formPath: string
store: Store
Returns Store
CommitPartOptions
CommitPartOptions: { errorSelector?: string; idProperty?: string }
Type declaration
Optional errorSelector?: string
Optional idProperty?: string
Const commitPart
- commitPart(formPath: string, nextIdPath: string, options: CommitPartOptions, store: Store): Store
Parameters
formPath: string
nextIdPath: string
store: Store
Returns Store
Const discardPart
- discardPart(formPath: string, store: Store): Store
Parameters
formPath: string
store: Store
Returns Store
RemovePartOptions
RemovePartOptions: { confirmName?: string }
Type declaration
Optional confirmName?: string
Const removePart
- removePart(partPath: string, options: RemovePartOptions, store: Store): Store | Promise<any>
Parameters
partPath: string
store: Store
Returns Store | Promise<any>
CopyPartOptions
CopyPartOptions: { pathToAdd?: string; idProperty?: string }
Type declaration
Optional pathToAdd?: string
Optional idProperty?: string
Const copyPart
- copyPart(partPath: string, nextIdPath: string, options: CopyPartOptions, store: Store): Store
Parameters
partPath: string
nextIdPath: string
store: Store
Returns Store
Const makeEntityUpdates
Parameters
Returns Record<string, Update>
Repository, which can search/add/replace/remove entities.