popover.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
  7. <title>Popover</title>
  8. </head>
  9. <body>
  10. <div class="container">
  11. <h1>Popover <small>Bootstrap Visual Test</small></h1>
  12. <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="auto" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  13. Popover on auto
  14. </button>
  15. <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="top" data-content="Default placement was on top but not enough place">
  16. Popover on top
  17. </button>
  18. <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  19. Popover on right
  20. </button>
  21. <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  22. Popover on bottom
  23. </button>
  24. <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  25. Popover on left
  26. </button>
  27. </div>
  28. <script src="../../../node_modules/jquery/dist/jquery.slim.min.js"></script>
  29. <script src="../../../node_modules/popper.js/dist/umd/popper.min.js"></script>
  30. <script src="../../dist/util.js"></script>
  31. <script src="../../dist/tooltip.js"></script>
  32. <script src="../../dist/popover.js"></script>
  33. <script>
  34. $(function () {
  35. $('[data-toggle="popover"]').popover()
  36. })
  37. </script>
  38. </body>
  39. </html>