# ImageEditorBeforeEvent (@salmonui/editors/image-editor)

> The ImageEditorBeforeEvent interface of @salmonui/editors/image-editor: Before-callback payload; preventDefault() cancels the operation.

Canonical: https://salmonui.dev/docs/reference/editors/image-editor/ImageEditorBeforeEvent

```ts
import type { ImageEditorBeforeEvent } from '@salmonui/editors/image-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/image-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/image-editor.md).

## Reference

Kind: interface

```ts
interface ImageEditorBeforeEvent<T> extends ImageEditorEvent<T> {
    readonly defaultPrevented: boolean;
    preventDefault(): void;
}
```

Before-callback payload; `preventDefault()` cancels the operation.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `operation` | `operation: ImageEditorOperation;` | inherited |  |
| `previous` | `previous: T;` | inherited |  |
| `value` | `value: T;` | inherited |  |
| `source` | `source: ImageEditorInputSource;` | inherited |  |
| `action` | `action?: "add" \| "clone" \| "delete" \| "reorder" \| "update";` | optional, inherited | Annotation operations: what happened. |
