ungleich-staticcms/assets/u/static/popper.js-1.16.0/docs/_includes/example30-code.html

11 lines
370 B
HTML
Raw Normal View History

<h2 id="example2" tabindex="0">Popper on scrolling container</h2>
<p>
In this example we have a relative div which contains a div with <code>overflow: scroll</code>.<br>
Inside it, there are our popper and reference elements.
</p>
{% highlight javascript %}
var popper = new Popper(referenceElement, onLeftPopper, {
placement: 'left',
});
{% endhighlight %}