> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IUseCustomWidgetInsightDataViewConfig

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/widget/common/useCustomWidgetInsightDataView.ts

Configuration options for the [useCustomWidgetInsightDataView()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usecustomwidgetinsightdataview/index.md) hook.

**Signature:**

```typescript
export interface IUseCustomWidgetInsightDataViewConfig 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enableExecutionCancelling?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iusecustomwidgetinsightdataviewconfig/index.md#iusecustomwidgetinsightdataviewconfigenableexecutioncancelling) |  | boolean | _(Optional)_ Enable or disable real execution cancellation. This means that if the execution request is not yet finished and the execution changes, the request will be cancelled and the new execution will be started. |
| [insight?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iusecustomwidgetinsightdataviewconfig/index.md#iusecustomwidgetinsightdataviewconfiginsight) |  | [IInsightDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iinsightdefinition/index.md) \| [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | _(Optional)_ Insight to execute or a reference to it. |
| [widget](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iusecustomwidgetinsightdataviewconfig/index.md#iusecustomwidgetinsightdataviewconfigwidget) |  | [ICustomWidget](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.icustomwidget/index.md) | Custom widget in the context of which the execution should be run. This affects which filters will be used. |

## Property details

### IUseCustomWidgetInsightDataViewConfig.enableExecutionCancelling

Enable or disable real execution cancellation.

This means that if the execution request is not yet finished and the execution changes, the request will be cancelled and the new execution will be started.

**Signature:**

```typescript
enableExecutionCancelling?: boolean;
```

### IUseCustomWidgetInsightDataViewConfig.insight

Insight to execute or a reference to it.

**Signature:**

```typescript
insight?: IInsightDefinition | ObjRef;
```

#### Remarks

The filters will be automatically merged with the filters on the dashboard. Note: When the insight is not provided, hook is locked in a "pending" state.

### IUseCustomWidgetInsightDataViewConfig.widget

Custom widget in the context of which the execution should be run. This affects which filters will be used.

**Signature:**

```typescript
widget: ICustomWidget;
```
