---
title: "Utils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/Common.Namespace.Utils/"
---

# Utils

> `any`

## Interfaces

### ICancelablePromise

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Properties

##### cancel

```ts
cancel: Function;
```

##### id

```ts
id: string;
```

##### promise

```ts
promise: Promise<T>;
```

## Functions

### getEventPath()

```ts
function getEventPath(uiEvent): any;
```

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `uiEvent` | `any` | - |

#### Returns

***

### getListSettingFromConfig()

```ts
function getListSettingFromConfig(config): IListSetting;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `config` | [`IListConfiguration`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/IListConfiguration.md#ilistconfiguration) |

#### Returns

[IListSetting](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListSetting.md)

***

### isEventPathContainsClass()

```ts
function isEventPathContainsClass(event, cssClass): boolean;
```

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `event` | `any` | - |
| `cssClass` | `any` | - |

#### Returns

`boolean`

***

### makeCancelable()

```ts
function makeCancelable<T>(promise): ICancelablePromise<T>;
```

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `promise` | [`Promise`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/finally.md#promise)\<`T`\> |

#### Returns

[`ICancelablePromise`](#icancelablepromise)\<`T`\>
