TableAction
TableAction =
object
Defined in: packages/admin/src/types.ts:157
A bulk action that operates on multiple selected rows in a table’s list view.
Table actions appear in the bulk action bar when one or more rows are selected.
Example
Section titled “Example”const exportAction: TableAction = { label: "Export CSV", handler: async (selectedIds) => { await exportToCsv(selectedIds); },};Properties
Section titled “Properties”handler()
Section titled “handler()”handler: (
selectedIds) =>Promise<unknown>
Defined in: packages/admin/src/types.ts:161
Async handler called with the array of selected record IDs.
Parameters
Section titled “Parameters”selectedIds
Section titled “selectedIds”string[]
Returns
Section titled “Returns”Promise<unknown>
label:
string
Defined in: packages/admin/src/types.ts:159
Display label for the bulk action button.