big-moving.ru/assets/vendor_components/popper/docs/_includes/example50-code.html

12 lines
345 B
HTML
Raw Normal View History

2022-06-24 15:29:23 +05:00
<h2 id="example5" tabindex="0">Viewport boundaries</h2>
<p>
By default, poppers use as boundaries the page viewport.<br>
Scroll the page to see the popper flip when hits the page viewport margins.
</p>
{% highlight javascript %}
var popper = new Popper(referenceElement, onBottomPopper, {
placement: 'bottom'
});
{% endhighlight %}