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.
Properties
Section titled “Properties”action?
Section titled “action?”
optionalaction:ClientDescriptor
Defined in: packages/ui/src/types.ts:1010
Action descriptor for permission checking.
confirmation?
Section titled “confirmation?”
optionalconfirmation:string
Defined in: packages/ui/src/types.ts:1014
Confirmation message; supports {count} placeholder.
handler()?
Section titled “handler()?”
optionalhandler: (rows) =>void
Defined in: packages/ui/src/types.ts:1012
Custom handler called with the selected rows.
Parameters
Section titled “Parameters”unknown[]
Returns
Section titled “Returns”void
optionalicon: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.