Constructor
# <ActionButton />
Renders Button which redirects to given action
Usage
import { ActionButton } from 'adminjs'
Type Definitions
object
# ActionButtonProps
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
action |
ActionJSON
|
Action to which button should redirect |
|
resourceId |
string
|
Id of a resource of an action |
|
recordId |
string
|
<optional> |
Optional recordId for record action |
recordIds |
Array.<string>
|
<optional> |
Optional recordIds for bulk action |
actionPerformed |
function
|
<optional> |
optional callback function which will be triggered when action is performed |