# makePositionStrategy Type documentation

## TypeScript declaration

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

**Kind:** function

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

```
PositionStrategy
```

```
makePositionStrategy(elementRef: ElementRef<any> | undefined, overlay: Overlay, placement: "start" | "end" | "bottom" | "auto" | ConnectionPositionPair[] | "top", constrain?: boolean = false, center?: boolean = true): PositionStrategy
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [elementRef](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L24-L24>) | `ElementRef<any> \| undefined` |  |  |
| [overlay](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L25-L25>) | `Overlay` |  |  |
| [placement](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L26-L26>) | `"start" \| "end" \| "bottom" \| "auto" \| ConnectionPositionPair[] \| "top"` |  |  |
| [constrain](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L27-L27>) (optional) | `boolean` | `false` |  |
| [center](<https://github.com/siemens/element/blob/main/projects/element-ng/common/helpers/overlay-helper.ts#L28-L28>) (optional) | `boolean` | `true` |  |

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