Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / bulkEditAction

Function: bulkEditAction()

bulkEditAction(fields?): Action

Defined in: admin/src/actions/Action.ts:478

Set one or more fields across every selected record.

The modal offers the resource's own fields, and only what was actually filled in is written — leaving a field blank means "leave it alone" rather than "clear it", which is the only reading that makes a bulk edit safe to use.

static bulkActions() { return [bulkEditAction(["status", "categoryId"]), bulkDeleteAction()]; }

Pass the field keys to offer, or omit them to offer every field the resource declares.

Parameters

fields?

string[]

Returns

Action