# OpenFinPluginOptions

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

Options required for when using the OpenFin plugin

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

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [notificationTimeout](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#notificationtimeout) | `number \| false` | Timeout (in ms) for OpenFin Notifications to expire; set false for notifications not to auto-dismiss | 5000 |
| [onNotificationAction](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#onnotificationaction) | `(event: \{ notification: any; type: string; trigger: string; result: \{ task: string; \}; \}) => any` | Function which is invoked when a button in OpenFin notification is clicked |   |
| [onShowNotification](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#onshownotification) | `(notification: any, alert?: `[`AdaptableAlert`](https://www.adaptabletools.com/docs/reference/adaptablealert.md)`) => any` | Updates OpenFin Notification object before it&#39;s displayed (just add/remove properties); return false to stop Notification showing |   |
| [onValidationFailureInExcel](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#onvalidationfailureinexcel) | `'override' \| 'show-notification' \| 'show-undo-notification'` | Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure |   |
| [showAdaptableAlertsAsNotifications](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#showadaptablealertsasnotifications) | `boolean` | Converts AdapTable Alerts configured to display in popup as OpenFin Notifications | true |
| [showAppIconInNotifications](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#showappiconinnotifications) | `true` | Icon to show in Notification - uses the value supplied in UserInterfaceOptions | true |
| [throttleTime](https://www.adaptabletools.com/docs/reference/openfinpluginoptions.md#throttletime) | `number` | How long (in ms) AdapTable throttles when sending data update to OpenFin | 2000 |

## Property Details

### notificationTimeout

Timeout (in ms) for OpenFin Notifications to expire; set false for notifications not to auto-dismiss

```ts title="TypeScript"
notificationTimeout?: number | false;
```

###### Default Value

5000

###### Property Value

`number | false`

### onNotificationAction

Function which is invoked when a button in OpenFin notification is clicked

```ts title="TypeScript"
onNotificationAction?: (event: {
        notification: any;
        type: string;
        trigger: string;
        result: {
            task: string;
        };
    }) => any;
```

###### Property Value

`(event: \{ notification: any; type: string; trigger: string; result: \{ task: string; \}; \}) => any`

### onShowNotification

Updates OpenFin Notification object before it&#39;s displayed (just add/remove properties); return false to stop Notification showing

```ts title="TypeScript"
onShowNotification?: (notification: any, alert?: AdaptableAlert) => any;
```

###### Property Value

`(notification: any, alert?: `[`AdaptableAlert`](https://www.adaptabletools.com/docs/reference/adaptablealert.md)`) => any`

### onValidationFailureInExcel

Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure

```ts title="TypeScript"
onValidationFailureInExcel?: 'override' | 'show-notification' | 'show-undo-notification';
```

###### Property Value

`'override' | 'show-notification' | 'show-undo-notification'`

### showAdaptableAlertsAsNotifications

Converts AdapTable Alerts configured to display in popup as OpenFin Notifications

```ts title="TypeScript"
showAdaptableAlertsAsNotifications?: boolean;
```

###### Default Value

true

###### Property Value

`boolean`

### showAppIconInNotifications

Icon to show in Notification - uses the value supplied in UserInterfaceOptions

```ts title="TypeScript"
showAppIconInNotifications?: true;
```

###### Default Value

true

###### Property Value

`true`

### throttleTime

How long (in ms) AdapTable throttles when sending data update to OpenFin

```ts title="TypeScript"
throttleTime?: number;
```

###### Default Value

2000

###### Property Value

`number`
