# getOverlayPositions Type documentation

## TypeScript declaration

### [getOverlayPositions](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L106-L123>)

**Kind:** function

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

```
ConnectionPositionPair[]
```

```
getOverlayPositions(elementRef: ElementRef<any>, placement: "start" | "end" | "bottom" | "auto" | ConnectionPositionPair[] | "top", center?: boolean = true): ConnectionPositionPair[]
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [elementRef](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L107-L107>) | `ElementRef<any>` |  |  |
| [placement](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L108-L108>) | `"start" \| "end" \| "bottom" \| "auto" \| ConnectionPositionPair[] \| "top"` |  |  |
| [center](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L109-L109>) (optional) | `boolean` | `true` |  |

**Returns:** [ConnectionPositionPair](<https://material.angular.dev/cdk/overlay/api#ConnectionPositionPair>)`[]`
