The API is aligned with Popper.js, visit their documentation for more information:
Popper.js Docs
${popup.invoker} ${popup.content}
`;
});
/* TODO: Add this when we have a feature in place that adds scrollbars / overflow when no space is available */
/* .add('Space not available', () => {
let popup;
const invokerNode = document.createElement('button');
invokerNode.innerHTML = 'UK';
invokerNode.addEventListener('click', () => popup.toggle());
let popup = overlays.add(
new LocalOverlayController({
hidesOnEsc: true,
contentTemplate: () => html`
Toggle the placement of this overlay with the buttons. Since there is not enough space
available on the vertical center or the top for this popup, the popup will get
displayed on the available space on the bottom. Try dragging the viewport to
increase/decrease space see the behavior of this.