SiPopoverDirective documentation¶
import { SiPopoverDirective } from '@siemens/element-ng/popover'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| id ¶ | string | `__popover-trigger_${this.popoverCounter}` | The ID of the trigger element. |
| siPopover ¶ | TranslatableString | TemplateRef<unknown> | undefined | The popover text to be displayed | |
| siPopoverContainerClass ¶ | string | '' | The class that will be applied to container of the popover |
| siPopoverContext ¶ | unknown | undefined | The context for the attached template |
| siPopoverIcon ¶ | string | undefined | undefined | The icon to be displayed besides popover title |
| siPopoverPlacement ¶ | "start" | "end" | "bottom" | "auto" | "top" | 'auto' | The placement of the popover. One of 'top', 'start', 'end', 'bottom' |
| siPopoverScrollStrategy ¶ | ScrollStrategy | defaultConnectedOverlayScrollStrategy() | CDK scroll strategy used for the popover overlay. |
| siPopoverTitle ¶ | TranslatableString | undefined | undefined | The title to be displayed on top for the popover |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| siPopoverVisibilityChange ¶ | boolean | Emits |
Attributes and Methods¶
| Name | Type | Default | Description |
|---|---|---|---|
| hide() ¶ | () => void | Hides the popover and emits 'hidden' event. | |
| (readonly) placementInternal ¶ | Signal<"start" | "end" | "bottom" | "auto" | "top"> | ... | |
| show() ¶ | () => void | Displays popover and emits 'shown' event. | |
| updatePosition() ¶ | () => void | Updates the position of the popover based on the position strategy. |
Types Documentation¶
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.
Except where otherwise noted, content on this site is licensed under MIT License.