# UserInterfaceApi

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

Icons, editable and read-only styles, the progress indicator, custom windows, and showing or hiding the UI.

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [closeCustomWindowPopup(windowId)](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#closecustomwindowpopup) | `void` | Closes a custom window |
| [getAdaptableObjectsWithTag(tag, adaptableModule)](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getadaptableobjectswithtag) | [`AdaptableObject`](https://www.adaptabletools.com/docs/reference/adaptableobject.md)`[] \| undefined` | Retrieves all objects in list which contain the given Tag |
| [getAdaptableObjectTags()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getadaptableobjecttags) | [`AdaptableObjectTag`](https://www.adaptabletools.com/docs/reference/adaptableobjecttag.md)`[] \| undefined` | Retrieves any Object Tags (provided in User Interface Options) |
| [getCustomIcons()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getcustomicons) | [`CustomIcon`](https://www.adaptabletools.com/docs/reference/customicon.md)`[]` | Retrieves Custom Icons provided by users |
| [getEditableCellStyle()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#geteditablecellstyle) | [`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` \| undefined` | Returns Style set for Editable cells |
| [getEditedCellStyle()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#geteditedcellstyle) | [`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` \| undefined` | Returns Style for Cells that have been edited |
| [getReadOnlyCellStyle()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getreadonlycellstyle) | [`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` \| undefined` | Returns Style set for ReadOnly Cells |
| [getStyleClassNames()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getstyleclassnames) | `string[] \| undefined` | Retrieves any Style Class Names from User Interface Options |
| [getUserInterfaceState()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#getuserinterfacestate) | [`UserInterfaceState`](https://www.adaptabletools.com/docs/reference/userinterfacestate.md) | Retrieves the current User Interface State |
| [hideAdaptableUI()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#hideadaptableui) | `void` | Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.) |
| [hideProgressIndicator()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#hideprogressindicator) | `void` | Hides the progress indicator |
| [isAdaptableUIVisible()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#isadaptableuivisible) | `boolean` | Returns whether the AdapTable UI is currently visible |
| [openCustomWindowPopup(config)](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#opencustomwindowpopup) | `\{ close: () => void; \}` | Opens a custom window popup |
| [showAdaptableUI()](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#showadaptableui) | `void` | Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.) |
| [showProgressIndicator(config)](https://www.adaptabletools.com/docs/reference/userinterfaceapi.md#showprogressindicator) | `\{ close: () => void; \}` | Displays a progress indicator |

## Method Details

### closeCustomWindowPopup

Closes a custom window

```ts title="TypeScript"
closeCustomWindowPopup(windowId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| windowId | `string` | window popup id |

###### Returns

`void`

### getAdaptableObjectsWithTag

Retrieves all objects in list which contain the given Tag

```ts title="TypeScript"
getAdaptableObjectsWithTag(tag: AdaptableObjectTag, adaptableModule?: AdaptableModule): AdaptableObject[] | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| tag | [`AdaptableObjectTag`](https://www.adaptabletools.com/docs/reference/adaptableobjecttag.md) | Tag to check |
| adaptableModule | [`AdaptableModule`](https://www.adaptabletools.com/docs/reference/adaptablemodule.md) | optional Module to check |

###### Returns

 All objects in list which contain the given Tag

[`AdaptableObject`](https://www.adaptabletools.com/docs/reference/adaptableobject.md)`[] | undefined`

### getAdaptableObjectTags

Retrieves any Object Tags (provided in User Interface Options)

```ts title="TypeScript"
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
```

###### Returns

 Any Object Tags (provided in User Interface Options)

[`AdaptableObjectTag`](https://www.adaptabletools.com/docs/reference/adaptableobjecttag.md)`[] | undefined`

### getCustomIcons

Retrieves Custom Icons provided by users

```ts title="TypeScript"
getCustomIcons(): CustomIcon[];
```

###### Returns

 Custom Icons provided by users

[`CustomIcon`](https://www.adaptabletools.com/docs/reference/customicon.md)`[]`

### getEditableCellStyle

Returns Style set for Editable cells

```ts title="TypeScript"
getEditableCellStyle(): AdaptableStyle | undefined;
```

###### Returns

 Style set for Editable cells

[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` | undefined`

### getEditedCellStyle

Returns Style for Cells that have been edited

```ts title="TypeScript"
getEditedCellStyle(): AdaptableStyle | undefined;
```

###### Returns

 Style for Cells that have been edited

[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` | undefined`

### getReadOnlyCellStyle

Returns Style set for ReadOnly Cells

```ts title="TypeScript"
getReadOnlyCellStyle(): AdaptableStyle | undefined;
```

###### Returns

 Style set for ReadOnly Cells

[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)` | undefined`

### getStyleClassNames

Retrieves any Style Class Names from User Interface Options

```ts title="TypeScript"
getStyleClassNames(): string[] | undefined;
```

###### Returns

 Any Style Class Names from User Interface Options

`string[] | undefined`

### getUserInterfaceState

Retrieves the current User Interface State

```ts title="TypeScript"
getUserInterfaceState(): UserInterfaceState;
```

###### Returns

 The current User Interface State

[`UserInterfaceState`](https://www.adaptabletools.com/docs/reference/userinterfacestate.md)

### hideAdaptableUI

Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)

```ts title="TypeScript"
hideAdaptableUI(): void;
```

###### Returns

`void`

### hideProgressIndicator

Hides the progress indicator

```ts title="TypeScript"
hideProgressIndicator(): void;
```

###### Returns

`void`

### isAdaptableUIVisible

Returns whether the AdapTable UI is currently visible

```ts title="TypeScript"
isAdaptableUIVisible(): boolean;
```

###### Returns

 `true` when the AdapTable UI is currently visible

`boolean`

### openCustomWindowPopup

Opens a custom window popup

```ts title="TypeScript"
openCustomWindowPopup(config: CustomWindowConfig): {
        close: () => void;
    };
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| config | [`CustomWindowConfig`](https://www.adaptabletools.com/docs/reference/customwindowconfig.md) | The configuration for the custom window |

###### Returns

 An object with a close method to close the window

`\{ close: () => void; \}`

### showAdaptableUI

Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)

```ts title="TypeScript"
showAdaptableUI(): void;
```

###### Returns

`void`

### showProgressIndicator

Displays a progress indicator

```ts title="TypeScript"
showProgressIndicator(config: ProgressIndicatorConfig): {
        close: () => void;
    };
```

###### Parameters

| Parameter | Type |
| --- | --- |
| config | [`ProgressIndicatorConfig`](https://www.adaptabletools.com/docs/reference/progressindicatorconfig.md) |

###### Returns

 An object with a close method to close the window

`\{ close: () => void; \}`
