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

# ISaveAsDialogProps

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/saveAs/types.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).
> 

**Signature:**

```typescript
export interface ISaveAsDialogProps 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [isVisible?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isaveasdialogprops/index.md#isaveasdialogpropsisvisible) |  | boolean | **_(ALPHA)_** _(Optional)_ Is SaveAs dialog visible? |
| [onCancel?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isaveasdialogprops/index.md#isaveasdialogpropsoncancel) |  | () =&gt; void | **_(ALPHA)_** _(Optional)_ Callback to be called, when user closes the save as dialog. |
| [onError?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isaveasdialogprops/index.md#isaveasdialogpropsonerror) |  | (error: [GoodDataSdkError](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md)) =&gt; void | **_(ALPHA)_** _(Optional)_ Callback to be called, when error occurs. |
| [onSubmit?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isaveasdialogprops/index.md#isaveasdialogpropsonsubmit) |  | (title: string, switchToCopy?: boolean) =&gt; void | **_(ALPHA)_** _(Optional)_ Callback to be called, when user submits the save as dialog. |
| [onSuccess?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.isaveasdialogprops/index.md#isaveasdialogpropsonsuccess) |  | (dashboard: [IDashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.idashboard/index.md)) =&gt; void | **_(ALPHA)_** _(Optional)_ Callback to be called, when save as finished successfully. |

## Property details

### ISaveAsDialogProps.isVisible

> **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).
> 

Is SaveAs dialog visible?

**Signature:**

```typescript
isVisible?: boolean;
```

### ISaveAsDialogProps.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).
> 

Callback to be called, when user closes the save as dialog.

**Signature:**

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

### ISaveAsDialogProps.onError

> **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).
> 

Callback to be called, when error occurs.

**Signature:**

```typescript
onError?: (error: GoodDataSdkError) => void;
```

### ISaveAsDialogProps.onSubmit

> **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).
> 

Callback to be called, when user submits the save as dialog.

**Signature:**

```typescript
onSubmit?: (title: string, switchToCopy?: boolean) => void;
```

### ISaveAsDialogProps.onSuccess

> **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).
> 

Callback to be called, when save as finished successfully.

**Signature:**

```typescript
onSuccess?: (dashboard: IDashboard) => void;
```
