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
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Tooltip.js test page</title>
|
||||
<script src="../../dist/popper.js"></script>
|
||||
<script src="../../dist/tooltip.js"></script>
|
||||
<style>
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
.reference {
|
||||
background: yellow;
|
||||
width: 200px;
|
||||
}
|
||||
.tooltip {
|
||||
color: white;
|
||||
background: black;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="reference" title="Tooltip text">Reference element</div>
|
||||
|
||||
<script>
|
||||
new Tooltip(
|
||||
document.querySelector(".reference"),
|
||||
{ placement: "bottom", trigger: "click" }
|
||||
);
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue