Skip to content

BulkAction

BulkAction = object

Defined in: packages/ui/src/types.ts:1006

Configuration for a bulk action available when rows are selected in a DataTableProps.

Each action can be backed by a @cfast/actions descriptor (permission-aware) or a plain handler callback. The confirmation message supports a {count} placeholder for the number of selected rows.

ListViewProps which accepts an array of bulk actions.

optional action: ClientDescriptor

Defined in: packages/ui/src/types.ts:1010

Action descriptor for permission checking.


optional confirmation: string

Defined in: packages/ui/src/types.ts:1014

Confirmation message; supports {count} placeholder.


optional handler: (rows) => void

Defined in: packages/ui/src/types.ts:1012

Custom handler called with the selected rows.

unknown[]

void


optional icon: ComponentType<{ className?: string; }>

Defined in: packages/ui/src/types.ts:1016

Optional icon component for the action button.


label: string

Defined in: packages/ui/src/types.ts:1008

Display label for the action button.