# MutationEvent Interface

> MutationEvent interface in the TX Sheet Control TypeScript API for the browser: 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 > Browser Editor > MutationEvent Interface
- **435 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/llms-full.txt

---

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

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [addresses](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/addresses-property/llms-full.txt) | The addresses value of MutationEvent. |
| [cancel](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/cancel-property/llms-full.txt) | The cancel value of MutationEvent. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/sheetid-property/llms-full.txt) | The sheetId value of MutationEvent. |
| [source](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/source-property/llms-full.txt) | The source value of MutationEvent. |
| [sources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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
import type { MutationEvent } from '@txtextcontrol/tx-sheet-control';

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

### See Also

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

---

## Nearby

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