Skip to content

SiPopoverDirective documentation

selectorexported-as
[siPopover]si-popover

Input Properties

NameTypeDefaultDescription
siPopover
(TranslatableString | TemplateRef<unknown>)The popover text to be displayed
siPopoverContainerClass
string''The class that will be applied to container of the popover
siPopoverContext
unknownundefinedThe context for the attached template
siPopoverIcon
stringundefinedThe icon to be displayed besides popover title
siPopoverPlacement
("auto" | "end" | "start" | "top" | "bottom")'auto'The placement of the popover. One of 'top', 'start', end', 'bottom'
siPopoverTitle
TranslatableStringundefinedThe title to be displayed on top for the popover

Output Properties

NameTypeDescription
siPopoverVisibilityChange
voidEmits an event when the popover is shown/hidden

Attributes and Methods

NameTypeDefaultDescription
hide()
() => voidHides the popover and emits 'hidden' event.
(readonly) placementInternal
Signal<("auto" | "end" | "start" | "top" | "bottom")>...
show()
() => voidDisplays popover and emits 'shown' event.
updatePosition()
() => voidUpdates the position of the popover based on the position strategy.

Types Documentation

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.
Translatable
import

Except where otherwise noted, content on this site is licensed under MIT License.