Forest Admin - API reference
Preparing search index...
@forestadmin/datasource-customizer
BaseAction
Interface BaseAction<S, N, Scope, Context>
interface
BaseAction
<
S
extends
TSchema
,
N
extends
TCollectionName
<
S
>
,
Scope
extends
ActionScope
,
Context
extends
ActionContext
<
S
,
N
>
,
>
{
description
?:
string
;
form
?:
|
DynamicForm
<
Context
>
|
(
(
context
:
Context
,
)
=>
DynamicForm
<
Context
>
|
Promise
<
DynamicForm
<
Context
>
>
)
;
generateFile
?:
boolean
;
scope
:
Scope
;
submitButtonLabel
?:
string
;
execute
(
context
:
Context
,
resultBuilder
:
ResultBuilder
,
)
:
void
|
ActionResult
|
Promise
<
ActionResult
>
|
Promise
<
void
>
;
}
Type Parameters
S
extends
TSchema
N
extends
TCollectionName
<
S
>
Scope
extends
ActionScope
Context
extends
ActionContext
<
S
,
N
>
Index
Properties
description?
form?
generate
File?
scope
submit
Button
Label?
Methods
execute
Properties
Optional
description
description
?:
string
Optional
form
form
?:
|
DynamicForm
<
Context
>
|
(
(
context
:
Context
,
)
=>
DynamicForm
<
Context
>
|
Promise
<
DynamicForm
<
Context
>
>
)
Optional
generate
File
generateFile
?:
boolean
scope
scope
:
Scope
Optional
submit
Button
Label
submitButtonLabel
?:
string
Methods
execute
execute
(
context
:
Context
,
resultBuilder
:
ResultBuilder
,
)
:
void
|
ActionResult
|
Promise
<
ActionResult
>
|
Promise
<
void
>
Parameters
context
:
Context
resultBuilder
:
ResultBuilder
Returns
void
|
ActionResult
|
Promise
<
ActionResult
>
|
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
description
form
generate
File
scope
submit
Button
Label
Methods
execute
Forest Admin - API reference
Loading...