ModelActionContext
Properties
modelConfig
Model metadata and view config.
Type: object
Source: client/lib/use/useModelAction.js:70
redirectTo
Redirects after success or cancel. Goes to the route's returnPath query value when it has one. Otherwise it goes to the model config's actionRedirects entry for the action. Resolves false when the router reports a navigation failure, so useActionForm keeps the form usable.
Type: (result: any) => Promise
Source: client/lib/use/useModelAction.js:74
runAction
Runs the action through the registered crud handlers.
Type: (options: ModelActionRunOptions) => Promise
Source: client/lib/use/useModelAction.js:72
state
Reactive action state.
Type: ModelActionRawState
Source: client/lib/use/useModelAction.js:71
Source
client/lib/use/useModelAction.js:69