Components

ActionHeader

<ActionHeader />

Constructor

# <ActionHeader />

Header of an action. It renders Action name with buttons for all the actions.

Usage

import { ActionHeader } from 'adminjs'

View Source adminjs/src/frontend/components/app/action-header/action-header.tsx, line 23

Type Definitions

object

# ActionHeaderProps

Properties:
Name Type Attributes Description
resource ResourceJSON

Resource for the action

record RecordJSON <optional>

Optional record - for record actions

toggleFilter function <optional>

If given, action header will render Filter button

actionPerformed function <optional>

It indicates if action without a component was performed.

action ActionJSON

An action objet

tag string <optional>

Optional tag which will be rendered as a Badge

omitActions boolean <optional>

If set, component wont render actions

View Source adminjs/src/frontend/components/app/action-header/action-header-props.tsx, line 6