Components

ActionButton

<ActionButton />

Constructor

# <ActionButton />

Renders Button which redirects to given action

Usage

import { ActionButton } from 'adminjs'

View Source adminjs/src/frontend/components/app/action-button/action-button.tsx, line 20

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

View Source adminjs/src/frontend/components/app/action-button/action-button.tsx, line 49