YYayaw

Guide

Bulk Actions

Confirmation flow and callback contract for copy, delete, edit, and export

Confirmation flow

copy and delete use a confirmation dialog. Current behavior: 1. User clicks Copy or Delete. 2. Dialog opens and stores the pending action.

Deterministic action behavior

edit: executes immediately. export: executes immediately. copy: always requires confirmation. delete: always requires confirmation.

Custom bulk actions

Use customBulkActions on DataTable when selected rows need app-specific operations such as publish, archive, approve, or sync. The prop accepts either a static array or a callback that receives the current selection con...

What this page covers

Guide outline

The original MDX source has been condensed into CMS-native cards so the page can be edited and republished from the control plane.

Confirmation flow

copy and delete use a confirmation dialog. Current behavior: 1. User clicks Copy or Delete. 2. Dialog opens and stores the pending action.

Deterministic action behavior

edit: executes immediately. export: executes immediately. copy: always requires confirmation. delete: always requires confirmation.

Custom bulk actions

Use customBulkActions on DataTable when selected rows need app-specific operations such as publish, archive, approve, or sync. The prop accepts either a static array or a callback that receives the current selection con...

Bulk callback contract

Recommended return shape: type BulkActionResult = success: boolean; closeMenu: boolean;

Implementation notes

Keep moving through the Table docs

Using Server Actions for list, create, update, delete and bulk operations

$ <DataTable

$ tableType="entries"

$ customBulkActions={(ctx) => [

$ {

$ id: "publish-selected",