import popper.js
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
615dc56d16
commit
16fb2bb919
241 changed files with 34099 additions and 0 deletions
18
assets/u/static/popper.js-1.16.0/docs/_includes/example20-code.html
Executable file
18
assets/u/static/popper.js-1.16.0/docs/_includes/example20-code.html
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
<h2 id="example3" tabindex="0">Custom flip behavior</h2>
|
||||
<p>
|
||||
Try dragging the reference element on the left side, its popper will move on its bottom edge.
|
||||
Then, try to move the reference element on the bottom left corner, it will move on its top edge.
|
||||
</p>
|
||||
{% highlight javascript %}
|
||||
var popper = new Popper(referenceElement, onLeftPopper, {
|
||||
placement: 'left',
|
||||
modifiers: {
|
||||
flip: {
|
||||
behavior: ['left', 'bottom', 'top']
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: container,
|
||||
},
|
||||
},
|
||||
});
|
||||
{% endhighlight %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue