[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / bulkEditAction

# Function: bulkEditAction()

> **bulkEditAction**(`fields?`): [`Action`](../classes/Action)

Defined in: [admin/src/actions/Action.ts:478](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/actions/Action.ts#L478)

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`](../classes/Action)
