Skip to main content
cngx-src documentation

withArrowTemplate

Functioncommon/popover

projects/common/popover/popover-panel.config.ts

Description#

Register an app-wide default template for the panel's arrow ornament. The template receives a CngxPopoverArrowContext with edge and offsetPx so the consumer's glyph can match the resolved placement.

Per-instance *cngxPopoverArrow still wins over this default; the library's rotated-diamond fallback only renders when neither tier is set.

providers: [
  providePopoverPanel(withArrowTemplate(brandArrowTpl)),
]

Signature#

withArrowTemplate(tpl: TemplateRef)

Parameters#

@paramtplTemplateRef

Returns#

PopoverPanelFeature