# SiPopoverLegacyDirective documentation

**Kind:** directive

**Selector:** `[siPopoverLegacy]`

**Exported as:** `si-popover`

```
import { SiPopoverLegacyDirective } from '@siemens/element-ng/popover-legacy';
```

Deprecated: Use [SiPopoverDirective](<../SiPopoverDirective/index.html#SiPopoverDirective>) instead.

```
directive SiPopoverLegacyDirective implements OnInit, OnDestroy
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [containerClass](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L84-L84>) | `string` | `''` | The class that will be applied to container of the popover |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L96-L96>) | `string \| undefined` |  | The icon to be displayed besides popover title |
| [isOpen](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L103-L103>) | `boolean` | `false` | Specify whether or not the popover is currently shown |
| [outsideClick](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L91-L91>) | `boolean` | `true` | The flag determines whether to close popover on clicking outside |
| [placement](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L44-L44>) | `"start" \| "end" \| "bottom" \| "auto" \| "top"` | `'auto'` | The placement of the popover. One of 'top', 'start', end', 'bottom' |
| [popoverContext](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L108-L108>) | `unknown` |  | The context for the attached template |
| [popoverTitle](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L77-L77>) | `string` | `''` | The title to be displayed on top for the popover |
| [siPopoverLegacy](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L37-L37>) | `string \| TemplateRef<any> \| undefined` |  | The popover text to be displayed |
| [triggers](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L70-L70>) | `string` | `'click'` | The trigger event(s) on which the popover shall be displayed. Applications can pass multiple triggers separated by space. Supported events are 'click', 'hover' and 'focus'.<br><br>**Limitations:** Safari browsers do not raise a 'focus' event on host element click and 'focus' on tab key has to be enabled in the advanced browser settings. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [hidden](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L118-L118>) | `void` | Emits an event when the popover is hidden |
| [shown](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L113-L113>) | `void` | Emits an event when the popover is shown |

#### Attributes and Methods

##### hide

[Source for hide](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L182-L188>)

Hides the popover and emits 'hidden' event.

```
hide(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### placementInternal

[Source for placementInternal](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L46-L57>)

**Modifiers:** readonly

**Type:** `Signal<"start" | "end" | "bottom" | "auto" | "top">`

**Default:** `...`

##### show

[Source for show](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L140-L177>)

Displays popover and emits 'shown' event.

```
show(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### updatePosition

[Source for updatePosition](<https://github.com/siemens/element/blob/main/projects/element-ng/popover-legacy/si-popover-legacy.directive.ts#L193-L195>)

Updates the position of the popover based on the position strategy.

```
updatePosition(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)
