# MutationEvent Interface

> MutationEvent interface in the TX Sheet Control TypeScript API for Node.js: Mutation context; cancel is honored only for a before event.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > MutationEvent Interface
- **420 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/llms-full.txt

---

Mutation context; cancel is honored only for a before event.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [addresses](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/addresses-property/llms-full.txt) | The addresses value of MutationEvent. |
| [cancel](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/cancel-property/llms-full.txt) | The cancel value of MutationEvent. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/sheetid-property/llms-full.txt) | The sheetId value of MutationEvent. |
| [source](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/source-property/llms-full.txt) | The source value of MutationEvent. |
| [sources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/sources-property/llms-full.txt) | Operation sources contributing to one atomic batch; omitted for a direct mutation. |

### Examples

Pass the MutationEvent value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
function inspectMutationEventSource(mutationEvent: { source: string }) {
    const value = mutationEvent['source'];
    console.log('MutationEvent.source', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt)

---

## In This Section

- [MutationEvent.addresses Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/addresses-property/llms-full.txt): MutationEvent.addresses property in the TX Sheet Control TypeScript API for Node.js, with its type readonly string[] and a TypeScript example.
- [MutationEvent.cancel Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/cancel-property/llms-full.txt): MutationEvent.cancel property in the TX Sheet Control TypeScript API for Node.js, with its type boolean and a TypeScript example.
- [MutationEvent.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/sheetid-property/llms-full.txt): MutationEvent.sheetId property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [MutationEvent.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/source-property/llms-full.txt): MutationEvent.source property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [MutationEvent.sources Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/sources-property/llms-full.txt): MutationEvent.sources property in the TX Sheet Control TypeScript API for Node.js: Operation sources contributing to one atomic batch.

---

## Nearby

- **Previous:** [MultiSheetDocument.workbookId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/multisheetdocument/workbookid-property/llms-full.txt)
- **Next:** [MutationEvent.addresses Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/mutationevent/addresses-property/llms-full.txt)
