# CustomDestination

Canonical page: https://www.adaptabletools.com/docs/reference/customdestination

Defines a custom Export destination

```ts title="TypeScript"
export interface CustomDestination 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [form](https://www.adaptabletools.com/docs/reference/customdestination.md#form) | [`AdaptableForm`](https://www.adaptabletools.com/docs/reference/adaptableform.md)`<`[`ExportFormContext`](https://www.adaptabletools.com/docs/reference/exportformcontext.md)`>` | Optional Adaptable Form; if provided, it must include Buttons that will execute the Export |
| [name](https://www.adaptabletools.com/docs/reference/customdestination.md#name) | `string` | Name of Custom Destination (mandatory) |
| [onExport](https://www.adaptabletools.com/docs/reference/customdestination.md#onexport) | `(reportContext: `[`ReportContext`](https://www.adaptabletools.com/docs/reference/reportcontext.md)`) => void` | Optional Function invoked when Export is applied (used if no form is supplied) |

## Property Details

### form

Optional Adaptable Form; if provided, it must include Buttons that will execute the Export

```ts title="TypeScript"
form?: AdaptableForm<ExportFormContext>;
```

###### Property Value

[`AdaptableForm`](https://www.adaptabletools.com/docs/reference/adaptableform.md)`<`[`ExportFormContext`](https://www.adaptabletools.com/docs/reference/exportformcontext.md)`>`

### name

Name of Custom Destination (mandatory)

```ts title="TypeScript"
name: string;
```

###### Property Value

`string`

### onExport

Optional Function invoked when Export is applied (used if no form is supplied)

```ts title="TypeScript"
onExport?: (reportContext: ReportContext) => void;
```

###### Property Value

`(reportContext: `[`ReportContext`](https://www.adaptabletools.com/docs/reference/reportcontext.md)`) => void`
