Skip to content

RowActionCallback

RowActionCallback<T> = (id, formData, ctx) => Promise<T>

Defined in: packages/admin/src/types.ts:190

Async handler signature for a RowAction.

Called with the record’s primary key, the submitted form data, and a RowActionContext that exposes the authenticated admin, a permission-scoped Db, their grants, and the raw request.

T = unknown

The resolved result type. Defaults to unknown.

string

FormData

RowActionContext

Promise<T>