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

# IAnalyticalDesignerCancelProps

- Package: [@gooddata/sdk-ui-analytical-designer](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-analytical-designer/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.68/libs/sdk-ui-analytical-designer/src/embedding/editorHeaderSlotTypes.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Props of the control that leaves the editor without saving.

**Signature:**

```typescript
export interface IAnalyticalDesignerCancelProps extends IAnalyticalDesignerHeaderContext 
```
**Extends:** [IAnalyticalDesignerHeaderContext](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-analytical-designer/sdk-ui-analytical-designer.ianalyticaldesignerheadercontext/index.md)

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [isDisabled](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-analytical-designer/sdk-ui-analytical-designer.ianalyticaldesignercancelprops/index.md#ianalyticaldesignercancelpropsisdisabled) |  | boolean | **_(ALPHA)_** Whether leaving is refused now, because the visualization is being saved. |
| [label](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-analytical-designer/sdk-ui-analytical-designer.ianalyticaldesignercancelprops/index.md#ianalyticaldesignercancelpropslabel) |  | string | **_(ALPHA)_** Label of the control. |
| [onCancel](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-analytical-designer/sdk-ui-analytical-designer.ianalyticaldesignercancelprops/index.md#ianalyticaldesignercancelpropsoncancel) |  | () =&gt; void | **_(ALPHA)_** Requests leaving the editor, with the same flow as `IAnalyticalDesignerVisualizationInfoProps.onRequestBack`. Ignored while `isDisabled` is true. |

## Property details

### IAnalyticalDesignerCancelProps.isDisabled

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Whether leaving is refused now, because the visualization is being saved.

**Signature:**

```typescript
isDisabled: boolean;
```

### IAnalyticalDesignerCancelProps.label

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Label of the control.

**Signature:**

```typescript
label: string;
```

### IAnalyticalDesignerCancelProps.onCancel

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Requests leaving the editor, with the same flow as `IAnalyticalDesignerVisualizationInfoProps.onRequestBack`. Ignored while `isDisabled` is true.

**Signature:**

```typescript
onCancel: () => void;
```
