phpvms/public/vendor/popper.js/docs/_includes/example30-code.html

11 lines
370 B
HTML
Raw Normal View History

2017-08-16 07:07:14 +08:00
<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 %}