Skip to content

charton API


charton API / @chart-on/ui / index / placePopover

Function: placePopover() ​

placePopover(list, trigger, options?): void

Defined in: ui/src/dom.ts:281

Apply popoverPlacement to an open list anchored under (or above) trigger. Without up, the list opens upwards in a bar at the bottom edge (atBottomEdge). In right-to-left chrome left and right swap: the list starts at the trigger's right edge.

Parameters ​

list ​

HTMLElement

trigger ​

HTMLElement

options? ​

alignEnd? ​

boolean

up? ​

boolean

Returns ​

void