---
schema_version: "1"
id: 0aa7b00714cf095f5bd34d47620b274e32ae95a7e1e658a34bf32bace0d6e7c8
title: AskData | Tableau Embedding API
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/embedding_api/reference/interfaces/AskData.md
canonical_url: https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskData.html
source_site: help.tableau.com
content_type: documentation
content_hash: e0c7aae2101fba119de2f0212a2003a946b22ce57038e378aed8de028f8038e1
description: Documentation for Tableau Embedding API
---
- AskData

# Interface AskData

The interface for the top level AskData object.

#### Deprecated[](#deprecated)

interface AskData {  
    [debug](#debug)?: boolean;  
    [height](#height)?: string | number;  
    [iframeAttributeClass](#iframeattributeclass)?: string;  
    [iframeAttributeLoading](#iframeattributeloading)?: string;  
    [iframeAttributeStyle](#iframeattributestyle)?: string;  
    [iframeAuth](#iframeauth)?: boolean;  
    [origin](#origin)?: string;  
    [showEmbed](#showembed)?: boolean;  
    [showPin](#showpin)?: boolean;  
    [showSave](#showsave)?: boolean;  
    [showShare](#showshare)?: boolean;  
    [src](#src)?: null | string;  
    [token](#token)?: string;  
    [width](#width)?: string | number;  
}

#### Hierarchy ([View Summary](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/hierarchy.html#AskData))

- [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html)
    - AskData

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:65

##### Index

### Properties

[debug?](#debug) [height?](#height) [iframeAttributeClass?](#iframeattributeclass) [iframeAttributeLoading?](#iframeattributeloading) [iframeAttributeStyle?](#iframeattributestyle) [iframeAuth?](#iframeauth) [origin?](#origin) [showEmbed?](#showembed) [showPin?](#showpin) [showSave?](#showsave) [showShare?](#showshare) [src?](#src) [token?](#token) [width?](#width)

## Properties

### `Optional`debug[](#debug)

debug?: boolean

Indicates whether the non-minified version of JavaScript is loaded. If specified (or set to true), the non-minified version is used for both the local component and the Tableau Server visualization (if enabled). If not specified (or set to false), the minified version of the JavaScript files are loaded.

```
<tableau-viz id="tableauViz" debug /><tableau-authoring-viz id="tableauViz" debug /><tableau-ask-data id="tableauAskData" debug />
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[debug](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#debug)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:50

### `Optional`height[](#height)

height?: string | number

Represents height in pixels Can be any valid CSS size specifier. If not specified, defaults to the published height of the view.

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[height](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#height)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:20

### `Optional`iframeAttributeClass[](#iframeattributeclass)

iframeAttributeClass?: string

The value of the 'class' attribute of the embedded iframe providing access to any custom selectors defined in the `<iframe-style>` child tag.

```
<tableau-viz id="tableauViz" iframe-attr-class="red-border">  <iframe-style>    .red-border {      border: 1px solid red;    }  </iframe-style></tableau-viz>
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[iframeAttributeClass](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#iframeattributeclass)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:101

### `Optional`iframeAttributeLoading[](#iframeattributeloading)

iframeAttributeLoading?: string

The value of the 'loading' attribute of the embedded iframe. See: [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#loading](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#loading)

```
<tableau-viz id="tableauViz" iframe-attr-loading="lazy" /><tableau-authoring-viz id="tableauViz" iframe-attr-loading="lazy" /><tableau-pulse id="tableauPulse" iframe-attr-loading="lazy" />
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[iframeAttributeLoading](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#iframeattributeloading)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:74

### `Optional`iframeAttributeStyle[](#iframeattributestyle)

iframeAttributeStyle?: string

The value of the 'style' attribute of the embedded iframe.

```
<tableau-viz id="tableauViz" iframe-attr-style="border: 1px solid red" /><tableau-authoring-viz id="tableauViz" iframe-attr-style="border: 1px solid red" /><tableau-pulse id="tableauPulse" iframe-attr-style="border: 1px solid red" />
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[iframeAttributeStyle](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#iframeattributestyle)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:85

### `Optional`iframeAuth[](#iframeauth)

iframeAuth?: boolean

Indicates whether to use the old auth mechanism for authentication which happens inside the iframe. If specified, VizLoadErrorEvents triggered due to auth failures will not be thrown.

```
<tableau-viz id="tableauViz" iframe-auth /><tableau-authoring-viz id="tableauViz" iframe-auth /><tableau-ask-data id="tableauAskData" iframe-auth />
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[iframeAuth](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#iframeauth)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:62

### `Optional`origin[](#origin)

origin?: string

Used for telemetry

```
<tableau-ask-data id="tableauAskData" origin="embeddingSite">
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[origin](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#origin)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:58

### `Optional`showEmbed[](#showembed)

showEmbed?: boolean

Indicates whether the embed button is hidden or visible.

```
<tableau-ask-data id="tableauAskData" show-embed>
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[showEmbed](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#showembed)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:26

### `Optional`showPin[](#showpin)

showPin?: boolean

Indicates whether the pin button is hidden or visible.

```
<tableau-ask-data id="tableauAskData" show-pin>
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[showPin](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#showpin)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:34

### `Optional`showSave[](#showsave)

showSave?: boolean

Indicates whether the save button is hidden or visible.

```
<tableau-ask-data id="tableauAskData" show-save>
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[showSave](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#showsave)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:42

### `Optional`showShare[](#showshare)

showShare?: boolean

Indicates whether the share button is hidden or visible.

```
<tableau-ask-data id="tableauAskData" show-share>
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[showShare](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#showshare)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/AskDataInterfaces.ts:50

### `Optional`src[](#src)

src?: null | string

The viz src

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[src](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#src)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:8

### `Optional`token[](#token)

token?: string

The token used for authorization

```
<tableau-viz id="tableauViz" token="some-token-containing-clientId" /><tableau-authoring-viz id="tableauViz" token="some-token-containing-clientId" /><tableau-ask-data id="tableauAskData" token="some-token-containing-clientId" />
```

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[token](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#token)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:37

### `Optional`width[](#width)

width?: string | number

Represents width in pixels Can be any valid CSS size specifier. If not specified, defaults to the published width of the view.

Inherited from [AskDataSettings](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html).[width](https://help.tableau.com/v0.0/api/embedding_api/en-us/reference/interfaces/AskDataSettings.html#width)

- Defined in packages/api-external-contract-js/src/ExternalContract/Embedding/WebComponentInterfaces.ts:14

### Settings

Member Visibility

- Protected
- Inherited
- External

ThemeOSLightDark

### On This Page

Properties

[debug](#debug)[height](#height)[iframeAttributeClass](#iframeattributeclass)[iframeAttributeLoading](#iframeattributeloading)[iframeAttributeStyle](#iframeattributestyle)[iframeAuth](#iframeauth)[origin](#origin)[showEmbed](#showembed)[showPin](#showpin)[showSave](#showsave)[showShare](#showshare)[src](#src)[token](#token)[width](#width)