# responsivelyCheckDirection Type documentation

## TypeScript declaration

### [responsivelyCheckDirection](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L277-L462>)

**Kind:** constant

```
import { responsivelyCheckDirection } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
(params: { isScrolling?: boolean | undefined; currentDirection: Direction; contentElements: HTMLElement[]; hostElement: HTMLElement | null; placement: Placement; ... 7 more ...; rtl?: boolean | undefined; }) => { ...; } = ...
```

```
responsivelyCheckDirection(params: { isScrolling?: boolean; currentDirection: Direction; contentElements: HTMLElement[]; hostElement: HTMLElement | null; placement: Placement; placementReferenceElement: HTMLElement; align: Align; responsiveDirectionToPlacement: boolean; closeOnPlacementReferenceScrollOut: boolean; closeOnContentScrollOut: boolean; minSpaceThresholdFactor?: number; placementReverse?: Placement; rtl?: boolean; }): { responsiveDirection?: Direction; close: boolean; }
```

Deprecated: Use the CDK Overlay instead.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [params](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L277-L291>) | `{ isScrolling?: boolean; currentDirection: Direction; contentElements: HTMLElement[]; hostElement: HTMLElement \| null; placement: Placement; placementReferenceElement: HTMLElement; align: Align; responsiveDirectionToPlacement: boolean; closeOnPlacementReferenceScrollOut: boolean; closeOnContentScrollOut: boolean; minSpaceThresholdFactor?: number; placementReverse?: Placement; rtl?: boolean; }` |  |  |

**Returns:** `{ responsiveDirection?: `[Direction](<index.html#t:Direction>)`; close: `[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`; }`

### Types Documentation

### [Align](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L20-L20>)

**Kind:** type alias

```
import type { Align } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
type Align = 'start' | 'center' | 'end'
```

### [Direction](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L8-L8>)

**Kind:** type alias

```
import type { Direction } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
type Direction = 'down' | 'up' | 'start' | 'end'
```

### [Placement](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L17-L17>)

**Kind:** type alias

```
import type { Placement } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
type Placement = '' | PlacementBasic | `${PlacementBasic} ${PlacementBasic}`
```

### [PlacementBasic](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L14-L14>)

**Kind:** type alias

```
import type { PlacementBasic } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
type PlacementBasic = 'start' | 'end' | PlacementBasicVertical
```

### [PlacementBasicVertical](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/positioning.helpers.ts#L11-L11>)

**Kind:** type alias

```
import type { PlacementBasicVertical } from '@siemens/element-ng/common';
```

Deprecated: Use the CDK Overlay instead.

```
type PlacementBasicVertical = 'top' | 'bottom'
```
