# getContentPositionString Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Deprecated: Use the CDK Overlay instead.

```
(params: { contentElement: HTMLElement; direction: Direction; placement: Placement; placementReferenceElement: HTMLElement; align: Align; rtl?: boolean | undefined; }) => string = ...
```

```
getContentPositionString(params: { contentElement: HTMLElement; direction: Direction; placement: Placement; placementReferenceElement: HTMLElement; align: Align; rtl?: boolean; }): string
```

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#L256-L263>) | `{ contentElement: HTMLElement; direction: Direction; placement: Placement; placementReferenceElement: HTMLElement; align: Align; rtl?: boolean; }` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

### 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'
```
