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

15 lines
373 B
HTML
Raw Normal View History

2022-06-24 15:29:23 +05:00
<h2 id="example4" tabindex="0">Shifted poppers</h2>
<p>
Shift your poppers on start or end of its reference element side.
</p>
{% highlight javascript %}
var shiftStart = new Popper(referenceElement, shiftStartPopper, {
placement: 'left-start',
});
var shiftEnd = new Popper(referenceElement, shiftEndPopper, {
placement: 'bottom-end',
});
{% endhighlight %}